Compare commits

...

2 Commits

Author SHA1 Message Date
Siwat Sirichai 4493b85542 Merge branch 'main' into cud 2023-11-12 23:07:21 +07:00
Siwat Sirichai 3ed34f9efd change fan mode name from med to medium 2023-11-12 23:07:16 +07:00
1 changed files with 2 additions and 2 deletions

View File

@ -800,7 +800,7 @@ void publish_ac_state()
mqtt.publish(AC_FAN_TOPIC, "high"); mqtt.publish(AC_FAN_TOPIC, "high");
break; break;
case 2: case 2:
mqtt.publish(AC_FAN_TOPIC, "med"); mqtt.publish(AC_FAN_TOPIC, "medium");
break; break;
case 3: case 3:
mqtt.publish(AC_FAN_TOPIC, "low"); 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); 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); ac_set_state(ac_mode, ac_temperature, 2);
} }