From 3ed34f9efdc1ca4df940d92597ac456d6bb0df15 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sun, 12 Nov 2023 23:07:16 +0700 Subject: [PATCH] change fan mode name from med to medium --- 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 58541e1..0ff5efc 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -800,7 +800,7 @@ void publish_ac_state() mqtt.publish(AC_FAN_TOPIC, "high"); break; case 2: - mqtt.publish(AC_FAN_TOPIC, "med"); + mqtt.publish(AC_FAN_TOPIC, "medium"); break; case 3: mqtt.publish(AC_FAN_TOPIC, "low"); @@ -843,7 +843,7 @@ void ac_state_callback(char *topic, uint8_t topic_length, char *payload, unsigne { ac_set_state(ac_mode, ac_temperature, 1); } - else if (!strcmp(payload, "med")) + else if (!strcmp(payload, "medium")) { ac_set_state(ac_mode, ac_temperature, 2); }