Fix ArduinoJson 6.18.0 breaking change

This commit is contained in:
fvanroie 2021-05-06 22:07:50 +02:00
parent 0e57e62763
commit f704593ad2

View File

@ -611,9 +611,6 @@ void dispatch_parse_json(const char*, const char* payload)
} else if(json.is<const char*>()) { // handle json as a single command } else if(json.is<const char*>()) { // handle json as a single command
dispatch_text_line(json.as<const char*>()); dispatch_text_line(json.as<const char*>());
} else if(json.is<char*>()) { // handle json as a single command
dispatch_text_line(json.as<char*>());
} else { } else {
LOG_WARNING(TAG_MSGR, F(D_DISPATCH_COMMAND_NOT_FOUND), payload); LOG_WARNING(TAG_MSGR, F(D_DISPATCH_COMMAND_NOT_FOUND), payload);
} }