mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-12 11:17:06 +01:00
ws: module names in flash
This commit is contained in:
@@ -934,7 +934,7 @@ void _buttonRelayAction(size_t id, ButtonAction action) {
|
||||
namespace {
|
||||
|
||||
void _buttonWebSocketOnVisible(JsonObject& root) {
|
||||
wsPayloadModule(root, "btn");
|
||||
wsPayloadModule(root, PSTR("btn"));
|
||||
}
|
||||
|
||||
void _buttonWebSocketOnConnected(JsonObject& root) {
|
||||
@@ -944,7 +944,7 @@ void _buttonWebSocketOnConnected(JsonObject& root) {
|
||||
}
|
||||
|
||||
bool _buttonWebSocketOnKeyCheck(const char * key, JsonVariant&) {
|
||||
return (strncmp(key, "btn", 3) == 0);
|
||||
return (strncmp_P(key, PSTR("btn"), 3) == 0);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user