Safeguard serial error prints
This commit is contained in:
@@ -19,7 +19,9 @@ void MultiColorLight::begin(void) {
|
||||
PowerParameters::CurrentConsumptions::CURRENT_LED_RGB_BASE,
|
||||
MULTI_COLOR_LIGHT_MAX_EXECUTION_DELAY_MS, NULL)) {
|
||||
ESP_LOGE(TAG, "Could not get power for MultiColorLight");
|
||||
Serial.println("Could not get power for MultiColorLight");
|
||||
if(Serial){
|
||||
Serial.println("Could not get power for MultiColorLight");
|
||||
}
|
||||
}
|
||||
rgbLeds.begin();
|
||||
this->turnOffLed();
|
||||
|
||||
Reference in New Issue
Block a user