From b6e862d1d272482f7f2f0c4a35f07a51cacb73fd Mon Sep 17 00:00:00 2001 From: reaw55 <58457329+reaw55@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:02:28 +0700 Subject: [PATCH] change user_acmode --- src/user_code.cpp | 2 +- src/user_code.hpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/user_code.cpp b/src/user_code.cpp index da1b8a5..010470b 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -1,5 +1,6 @@ #include +uint8_t user_acmode = 0; // Display Componets // Link with Dual state button object with id 2 on page 1 named bt0 NexButton light_toggle = NexButton(1,2,"light_toggle"); @@ -191,7 +192,6 @@ 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 7ffcf18..601195a 100644 --- a/src/user_code.hpp +++ b/src/user_code.hpp @@ -61,7 +61,6 @@ #define ANALOG_REPORTING_INTERVAL 500 // User Defined Variables -uint8_t user_acmode; // User Defined Functions #define elcd ESPMega_EXTLCD