# HG changeset patch # User Ethan Zonca # Date 2014-10-18 15:50:44 # Node ID 1293e47355438f30c6360e45fa2557fb2a15ce4f # Parent 04999406e7163efe27ae84ebd29a8e14aa456ee3 Fix bug where new device can't change modes down diff --git a/main.c b/main.c --- a/main.c +++ b/main.c @@ -292,7 +292,7 @@ void draw_setpoint() { ssd1306_DrawString(tempstr, 3, 95); } -uint8_t goto_mode = 2; +uint8_t goto_mode = 1; // State machine uint8_t sw_btn_last = 0; @@ -428,7 +428,7 @@ void machine() else if(SW_UP_PRESSED && goto_mode < 2) { goto_mode++; } - else if(SW_DOWN_PRESSED && k_p > 0 && goto_mode > 0) { + else if(SW_DOWN_PRESSED && goto_mode > 0) { goto_mode--; }