[IND] Fix red led display (#1629)
Fix critical indicator not working on development branch
This commit is contained in:
1 parent
9f71a50109
commit
ad4e4b55c7
1 file changed
+3
-4
+3
-4
@@ -513,7 +513,6 @@ int lowpowermode = DEFAULT_LOW_POWER_MODE;
|
|||||||
# define InfoIndicatorOFF()
|
# define InfoIndicatorOFF()
|
||||||
# endif
|
# endif
|
||||||
# define CriticalIndicatorON() // Not used
|
# define CriticalIndicatorON() // Not used
|
||||||
# define CriticalIndicatorON() // Not used
|
|
||||||
# define PowerIndicatorON() // Not used
|
# define PowerIndicatorON() // Not used
|
||||||
# define PowerIndicatorOFF() // Not used
|
# define PowerIndicatorOFF() // Not used
|
||||||
# define SetupIndicators() // Not used
|
# define SetupIndicators() // Not used
|
||||||
@@ -628,9 +627,9 @@ Adafruit_NeoPixel leds2(ANEOPIX_IND_NUM_LEDS, ANEOPIX_IND_DATA_GPIO2, ANEOPIX_IN
|
|||||||
# ifdef ANEOPIX_IND_DATA_GPIO2 // Used for relay power indicator
|
# ifdef ANEOPIX_IND_DATA_GPIO2 // Used for relay power indicator
|
||||||
// For the critical ON indicator there is no method to turn it off, the only way is to unplug the device
|
// For the critical ON indicator there is no method to turn it off, the only way is to unplug the device
|
||||||
// This enable to have persistence of the indicator to inform the user
|
// This enable to have persistence of the indicator to inform the user
|
||||||
# define CriticalIndicatorON() \
|
# define CriticalIndicatorON() \
|
||||||
leds.setPixelColor(ANEOPIX_INFO_LED, ANEOPIX_CRITICAL); \
|
leds2.setPixelColor(ANEOPIX_INFO_LED, ANEOPIX_CRITICAL); \
|
||||||
leds.show();
|
leds2.show();
|
||||||
# define PowerIndicatorON() \
|
# define PowerIndicatorON() \
|
||||||
leds2.setPixelColor(ANEOPIX_INFO_LED, ANEOPIX_INFO); \
|
leds2.setPixelColor(ANEOPIX_INFO_LED, ANEOPIX_INFO); \
|
||||||
leds2.show();
|
leds2.show();
|
||||||
|
|||||||
Reference in new issue
Block a user