mirror of https://github.com/arendst/Tasmota.git
v5.2.2
5.2.2 20170625 * Add configuration SaveAddress to Status 1 and Information Page * Change Sonoff Led Color conversion from AtoH to strtol * Fix possible wrong uploads due to configuration overwrites (#542) * Fix payload negative numbers (#547)
This commit is contained in:
parent
2195ddd496
commit
e914053041
|
@ -940,8 +940,8 @@ void mqttDataCb(char* topic, byte* data, unsigned int data_len)
|
||||||
payload = 4;
|
payload = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf_P(svalue, sizeof(svalue), PSTR("RSLT: Payload %d, Payload16 %d"), payload, payload16);
|
// snprintf_P(svalue, sizeof(svalue), PSTR("RSLT: Payload %d, Payload16 %d"), payload, payload16);
|
||||||
addLog(LOG_LEVEL_DEBUG, svalue);
|
// addLog(LOG_LEVEL_DEBUG, svalue);
|
||||||
|
|
||||||
if (!strcmp_P(type,PSTR("POWER")) && (index > 0) && (index <= Maxdevice)) {
|
if (!strcmp_P(type,PSTR("POWER")) && (index > 0) && (index <= Maxdevice)) {
|
||||||
if ((payload < 0) || (payload > 4)) {
|
if ((payload < 0) || (payload > 4)) {
|
||||||
|
|
Loading…
Reference in New Issue