change fan mode name from med to medium

This commit is contained in:
Siwat Sirichai 2023-11-12 23:07:16 +07:00
parent 5d3b8f8f43
commit 3ed34f9efd
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);
}