Skip to content

Commit

Permalink
v5.2.2
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
arendst committed Jun 25, 2017
1 parent 2195ddd commit e914053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonoff/sonoff.ino
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,8 @@ void mqttDataCb(char* topic, byte* data, unsigned int data_len)
payload = 4;
}

snprintf_P(svalue, sizeof(svalue), PSTR("RSLT: Payload %d, Payload16 %d"), payload, payload16);
addLog(LOG_LEVEL_DEBUG, svalue);
// snprintf_P(svalue, sizeof(svalue), PSTR("RSLT: Payload %d, Payload16 %d"), payload, payload16);
// addLog(LOG_LEVEL_DEBUG, svalue);

if (!strcmp_P(type,PSTR("POWER")) && (index > 0) && (index <= Maxdevice)) {
if ((payload < 0) || (payload > 4)) {
Expand Down

0 comments on commit e914053

Please sign in to comment.