Compare commits

..

No commits in common. "4493b85542beb6b3967d1a94fcb46ca29dbeefad" and "f21e0f41089fb02890b1df9833dc879ab092856e" have entirely different histories.

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, "medium"); mqtt.publish(AC_FAN_TOPIC, "med");
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, "medium")) else if (!strcmp(payload, "med"))
{ {
ac_set_state(ac_mode, ac_temperature, 2); ac_set_state(ac_mode, ac_temperature, 2);
} }