From 684652d0fcbed96b43305e899b0ed73de33845b3 Mon Sep 17 00:00:00 2001 From: reaw55 <58457329+reaw55@users.noreply.github.com> Date: Mon, 8 Jan 2024 22:29:17 +0700 Subject: [PATCH] fix toggle stuck on --- src/user_code.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");