In the code below, every combination of fan and wp are used. And each condition sets alert to a specific value.
So, the alert = 1 will never make it past that block of code.
Code:If fan = 0 and wp = 0 then LCDOUT $FE,$C0,"Fans:OFF W/Pump:OFF":alert = 2 endif If fan = 1 and wp = 0 then LCDOUT $FE,$C0,"Fans:ON W/Pump:OFF":alert = 3 endif If fan = 0 and wp = 1 then LCDOUT $FE,$C0,"Fans:OFF W/Pump:ON":alert = 0 endif If fan = 1 and wp = 1 then LCDOUT $FE,$C0,"Fans:ON W/Pump:ON":alert = 0 endif
Bookmarks