fix logic error
This commit is contained in:
		
							parent
							
								
									2bb6b813cc
								
							
						
					
					
						commit
						aec65f3292
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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=");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue