diff --git a/src/user_code.cpp b/src/user_code.cpp index da86b04..161220a 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -136,8 +136,14 @@ void fan_pop_callback(void *ptr) void mode_pop_callback(void *ptr) { uint8_t current_mode = ac_get_mode(); - uint8_t new_mode = (current_mode + 1) % 3; // Loop back to 0 when reaching 2 - ac_set_state(new_mode, ac_get_temperature(), ac_get_fan_speed()); + //uint8_t new_mode = (current_mode + 1) % 3; // Loop back to 1 when reaching 2 + if(current_mode == 1) { + ac_set_state(2, ac_get_temperature(), ac_get_fan_speed()); + } else if(current_mode == 2) { + ac_set_state(1, ac_get_temperature(), ac_get_fan_speed()); + } + + //ac_set_state(new_mode, ac_get_temperature(), ac_get_fan_speed()); } void ac_toggle_pop_callback(void *ptr)