fix toggle 2

This commit is contained in:
reaw55 2024-01-08 22:13:24 +07:00
parent a6f1eb34e3
commit 74cb7530fe
1 changed files with 17 additions and 17 deletions

View File

@ -480,28 +480,28 @@ void update_lcd_ac()
elcd.print("mode.pic2=24");
elcd_send_stop_bit();
}
else if (mode_state == 0)
else if (ac_get_mode() == 0)
{
elcd_send_stop_bit();
elcd.print("ac_toggle.pic=1");
elcd_send_stop_bit();
elcd.print("ac_toggle.pic2=1");
if (user_acmode == 1)
{
elcd_send_stop_bit();
elcd.print("mode.pic=22");
elcd_send_stop_bit();
elcd.print("mode.pic2=22");
elcd_send_stop_bit();
}
else
{
elcd_send_stop_bit();
elcd.print("mode.pic=24");
elcd_send_stop_bit();
elcd.print("mode.pic2=24");
elcd_send_stop_bit();
}
// if (user_acmode == 1)
// {
// elcd_send_stop_bit();
// elcd.print("mode.pic=22");
// elcd_send_stop_bit();
// elcd.print("mode.pic2=22");
// elcd_send_stop_bit();
// }
// else
// {
// elcd_send_stop_bit();
// elcd.print("mode.pic=24");
// elcd_send_stop_bit();
// elcd.print("mode.pic2=24");
// elcd_send_stop_bit();
// }
}
/* elcd.print("mode.pic=");
elcd.print(mode_state==1?22:24);