mirror of https://github.com/arendst/Tasmota.git
PS_16_DZ: cleanup
This commit is contained in:
parent
f75c4a27ad
commit
0ce7537371
|
@ -166,8 +166,6 @@ void PS16DZSerialInput(void)
|
||||||
char* token = strtok_r(string, ",", &end_str);
|
char* token = strtok_r(string, ",", &end_str);
|
||||||
while (token != NULL) {
|
while (token != NULL) {
|
||||||
char* end_token;
|
char* end_token;
|
||||||
snprintf_P(log_data, sizeof(log_data), PSTR("PSZ: token = %s"), token);
|
|
||||||
AddLog(LOG_LEVEL_DEBUG);
|
|
||||||
char* token2 = strtok_r(token, ":", &end_token);
|
char* token2 = strtok_r(token, ":", &end_token);
|
||||||
char* token3 = strtok_r(NULL, ":", &end_token);
|
char* token3 = strtok_r(NULL, ":", &end_token);
|
||||||
if(!strncmp(token2, "\"switch\"", 8)){
|
if(!strncmp(token2, "\"switch\"", 8)){
|
||||||
|
|
Loading…
Reference in New Issue