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:
arendst 2017-06-25 23:07:51 +02:00
parent 2195ddd496
commit e914053041
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {