mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-16 23:41:40 +02:00
Change approach of notifying of power problem to be more beginner friendly
This commit is contained in:
@ -9,7 +9,7 @@ void MultiColorLight::begin(void){
|
||||
Power::waitForCurrentAllowance(PowerParameters::PowerConsumers::LED_RGB_TOP_RIGHT, PowerParameters::CurrentConsumptions::CURRENT_LED_RGB_BASE, MULTI_COLOR_LIGHT_MAX_EXECUTION_DELAY_MS, NULL) &&
|
||||
Power::waitForCurrentAllowance(PowerParameters::PowerConsumers::LED_RGB_BOTTOM, PowerParameters::CurrentConsumptions::CURRENT_LED_RGB_BASE, MULTI_COLOR_LIGHT_MAX_EXECUTION_DELAY_MS, NULL) ){
|
||||
ESP_LOGE(TAG, "Could not get power for MultiColorLight");
|
||||
throw "Could not get power for MultiColorLight";
|
||||
Serial.println("Could not get power for MultiColorLight");
|
||||
}
|
||||
rgbLeds.begin();
|
||||
this->turnOffLed();
|
||||
|
Reference in New Issue
Block a user