diff --git a/src/user_code.cpp b/src/user_code.cpp index f852b0b..e2aa72f 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -466,7 +466,7 @@ void update_lcd_ac() //uint8_t mode_state = user_acmode; // mode.Set_background_image_pic(mode_state==1?22:24); elcd_send_stop_bit(); - if (user_acmode == 1) + if (ac_get_mode() == 1) { elcd_send_stop_bit(); elcd.print("air_toggle.pic=2"); @@ -478,7 +478,7 @@ void update_lcd_ac() elcd.print("mode.pic2=22"); elcd_send_stop_bit(); } - else if (user_acmode == 2) + else if (ac_get_mode() == 2) { elcd_send_stop_bit(); elcd.print("air_toggle.pic=2");