From aec65f3292dc45fb515f0f05974d672db4761996 Mon Sep 17 00:00:00 2001 From: reaw55 <58457329+reaw55@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:53:14 +0700 Subject: [PATCH] fix logic error --- src/user_code.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/user_code.cpp b/src/user_code.cpp index 1e6c3fe..f33e41c 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -237,7 +237,7 @@ void virtual_interrupt_user_callback(int pin, int state) } void update_lcd_row1() { - bool master_state = row_is_on(ROW1_LIGHT1,ROW1_LIGHT2); + bool master_state = row_is_on_or(ROW1_LIGHT1,ROW1_LIGHT2); //row1_master.Set_background_image_pic(master_state?10:9); elcd_send_stop_bit(); elcd.print("row1_master.pic="); @@ -259,7 +259,7 @@ void update_lcd_row1() { } void update_lcd_row2() { - bool master_state = row_is_on(ROW2_LIGHT1,ROW2_LIGHT2); + bool master_state = row_is_on_or(ROW2_LIGHT1,ROW2_LIGHT2); //row2_master.Set_background_image_pic(master_state?12:11); elcd_send_stop_bit(); elcd.print("row2_master.pic="); @@ -280,7 +280,7 @@ void update_lcd_row2() { } void update_lcd_row3() { - bool master_state = row_is_on(ROW3_LIGHT1,ROW3_LIGHT2); + bool master_state = row_is_on_or(ROW3_LIGHT1,ROW3_LIGHT2); //row3_master.Set_background_image_pic(master_state?14:13); elcd_send_stop_bit(); elcd.print("row3_master.pic="); @@ -301,7 +301,7 @@ void update_lcd_row3() { } void update_lcd_row4() { - bool master_state = row_is_on(ROW4_LIGHT1,ROW4_LIGHT2); + bool master_state = row_is_on_or(ROW4_LIGHT1,ROW4_LIGHT2); //row4_master.Set_background_image_pic(master_state?16:15); elcd_send_stop_bit(); elcd.print("row4_master.pic=");