From ca27f6de8929b1474952004d46d72543ee202bea Mon Sep 17 00:00:00 2001 From: reaw55 <58457329+reaw55@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:00:03 +0700 Subject: [PATCH] update user_acmode to work --- src/user_code.cpp | 1 + src/user_code.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/user_code.cpp b/src/user_code.cpp index 93a3b7e..da1b8a5 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -191,6 +191,7 @@ void user_init() { elcd.print("page main"); elcd_send_stop_bit(); + user_acmode = 0; light_toggle.attachPop(light_toggle_pop_callback, &light_toggle); row1_lv1.attachPop(row1_lv1_pop_callback, &row1_lv1); row1_lv2.attachPop(row1_lv2_pop_callback, &row1_lv2); diff --git a/src/user_code.hpp b/src/user_code.hpp index 9754bb7..7ffcf18 100644 --- a/src/user_code.hpp +++ b/src/user_code.hpp @@ -61,7 +61,7 @@ #define ANALOG_REPORTING_INTERVAL 500 // User Defined Variables -uint8_t user_acmode = 0; +uint8_t user_acmode; // User Defined Functions #define elcd ESPMega_EXTLCD