Centralize ExternalNotificationModule LED handling

This PR attemtps to take a small step towards addressing issue 5194
by de-duplicating LED handling code within ExternalNotificationModule.
I also refactored the color state code around an alpha channel approach.
This commit is contained in:
Blake Latchford 2024-11-17 11:10:09 -05:00
parent 426e804324
commit c566a9f465

View File

@ -256,7 +256,8 @@ void ExternalNotificationModule::stopNow()
void ExternalNotificationModule::setLEDs(const RGB& rgb)
{
#ifdef HAS_LEDS
#ifdef HAS_LED
// LOG_DEBUG("setLEDs red=%d, green=%d, blue=%d", rgb.red, rgb.green, rgb.blue);
#ifdef HAS_NCP5623