From fb22e48d33227725ea15b48b2474ff18fca04a69 Mon Sep 17 00:00:00 2001 From: reaw55 <58457329+reaw55@users.noreply.github.com> Date: Tue, 26 Dec 2023 22:53:12 +0700 Subject: [PATCH] update acmode to user_acmode --- src/user_code.cpp | 4 ++-- src/user_code.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user_code.cpp b/src/user_code.cpp index 655850f..93a3b7e 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -139,9 +139,9 @@ void ac_toggle_pop_callback(void *ptr) { //this function should set the state of the AC to toggle between off (mode 0) and the same state as before store in variable acmode if (ac_get_mode() == 0) { - ac_set_state(acmode, ac_get_temperature(), ac_get_fan_speed()); + ac_set_state(user_acmode, ac_get_temperature(), ac_get_fan_speed()); } else { - acmode = ac_get_mode(); + user_acmode = ac_get_mode(); ac_set_state(0, ac_get_temperature(), ac_get_fan_speed()); } diff --git a/src/user_code.hpp b/src/user_code.hpp index 34467db..9754bb7 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 acmode = 0; +uint8_t user_acmode = 0; // User Defined Functions #define elcd ESPMega_EXTLCD