Compare commits

...

2 Commits

Author SHA1 Message Date
reaw55 424312952c Merge branch 'ise' of https://git.siwatsystem.com/ise-senior-iot/iot-firmware into ise 2023-12-26 22:56:38 +07:00
reaw55 fb22e48d33 update acmode to user_acmode 2023-12-26 22:53:12 +07:00
2 changed files with 3 additions and 3 deletions

View File

@ -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());
}

View File

@ -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