From 5d3b8f8f43a1bea709e206b48707ac1f98193e7b Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sun, 12 Nov 2023 22:44:50 +0700 Subject: [PATCH] Update espmega_iot_core.cpp --- src/espmega_iot_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index 02766af..58541e1 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -839,7 +839,7 @@ void ac_state_callback(char *topic, uint8_t topic_length, char *payload, unsigne { ac_set_state(ac_mode, ac_temperature, 0); } - else if (!strcmp(payload, "low")) + else if (!strcmp(payload, "high")) { ac_set_state(ac_mode, ac_temperature, 1); } @@ -847,7 +847,7 @@ void ac_state_callback(char *topic, uint8_t topic_length, char *payload, unsigne { ac_set_state(ac_mode, ac_temperature, 2); } - else if (!strcmp(payload, "high")) + else if (!strcmp(payload, "low")) { ac_set_state(ac_mode, ac_temperature, 3); }