fix toggle stuck on

This commit is contained in:
reaw55 2024-01-08 22:29:17 +07:00
parent cad22768ce
commit 684652d0fc
1 changed files with 2 additions and 2 deletions

View File

@ -466,7 +466,7 @@ void update_lcd_ac()
//uint8_t mode_state = user_acmode; //uint8_t mode_state = user_acmode;
// mode.Set_background_image_pic(mode_state==1?22:24); // mode.Set_background_image_pic(mode_state==1?22:24);
elcd_send_stop_bit(); elcd_send_stop_bit();
if (user_acmode == 1) if (ac_get_mode() == 1)
{ {
elcd_send_stop_bit(); elcd_send_stop_bit();
elcd.print("air_toggle.pic=2"); elcd.print("air_toggle.pic=2");
@ -478,7 +478,7 @@ void update_lcd_ac()
elcd.print("mode.pic2=22"); elcd.print("mode.pic2=22");
elcd_send_stop_bit(); elcd_send_stop_bit();
} }
else if (user_acmode == 2) else if (ac_get_mode() == 2)
{ {
elcd_send_stop_bit(); elcd_send_stop_bit();
elcd.print("air_toggle.pic=2"); elcd.print("air_toggle.pic=2");