diff --git a/src/user_code.cpp b/src/user_code.cpp index f27f99e..1e6c3fe 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -241,7 +241,7 @@ void update_lcd_row1() { //row1_master.Set_background_image_pic(master_state?10:9); elcd_send_stop_bit(); elcd.print("row1_master.pic="); - elcd.print(master_state?10:)9; + elcd.print(master_state?10:9); elcd_send_stop_bit(); @@ -324,10 +324,10 @@ void update_lcd_row4() { void update_toggle_button() { //calcuate the current state of the toggle button bool current_state = row_is_on_or(ROW1_LIGHT1,ROW1_LIGHT2) || row_is_on_or(ROW2_LIGHT1,ROW2_LIGHT2) || row_is_on_or(ROW3_LIGHT1,ROW3_LIGHT2) || row_is_on_or(ROW4_LIGHT1,ROW4_LIGHT2); - //light_toggle.Set_background_image_pic(current_state?3:4); + //light_toggle.Set_background_image_pic(current_state?4:3); elcd_send_stop_bit(); elcd.print("light_toggle.pic="); - elcd.print(current_state?3:4); + elcd.print(current_state?4:3); elcd_send_stop_bit(); }