From 74cb7530feb99d06a486d295652a9eb8691016e7 Mon Sep 17 00:00:00 2001 From: reaw55 <58457329+reaw55@users.noreply.github.com> Date: Mon, 8 Jan 2024 22:13:24 +0700 Subject: [PATCH] fix toggle 2 --- src/user_code.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/user_code.cpp b/src/user_code.cpp index d9c70a3..b499c13 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -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);