Compare commits
No commits in common. "424312952ccff53ae15b7c969219c2f9f1205316" and "821e200874347f57cbc60cc7dc6f5977453e49e1" have entirely different histories.
424312952c
...
821e200874
|
@ -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
|
//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) {
|
if (ac_get_mode() == 0) {
|
||||||
ac_set_state(user_acmode, ac_get_temperature(), ac_get_fan_speed());
|
ac_set_state(acmode, ac_get_temperature(), ac_get_fan_speed());
|
||||||
} else {
|
} else {
|
||||||
user_acmode = ac_get_mode();
|
acmode = ac_get_mode();
|
||||||
ac_set_state(0, ac_get_temperature(), ac_get_fan_speed());
|
ac_set_state(0, ac_get_temperature(), ac_get_fan_speed());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
#define ANALOG_REPORTING_INTERVAL 500
|
#define ANALOG_REPORTING_INTERVAL 500
|
||||||
|
|
||||||
// User Defined Variables
|
// User Defined Variables
|
||||||
uint8_t user_acmode = 0;
|
uint8_t acmode = 0;
|
||||||
|
|
||||||
// User Defined Functions
|
// User Defined Functions
|
||||||
#define elcd ESPMega_EXTLCD
|
#define elcd ESPMega_EXTLCD
|
||||||
|
|
Loading…
Reference in New Issue