Merge branch 'main' into cud

This commit is contained in:
Siwat Sirichai 2023-11-12 23:07:21 +07:00
commit 4493b85542
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");
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);
}