diff --git a/src/communication/Communication.cpp b/src/communication/Communication.cpp index 0335347..864c223 100644 --- a/src/communication/Communication.cpp +++ b/src/communication/Communication.cpp @@ -82,7 +82,7 @@ void Communication::begin(void) { PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE, MESH_MAX_EXECUTION_DELAY_MS, NULL)) { ESP_LOGE(TAG, "Failed to get power for mesh initialization"); - throw "Failed to get power for mesh initialization"; + Serial.println("Failed to get power for mesh initialization"); } mesh.init(MESH_PREFIX, MESH_PASSWORD, &userScheduler, MESH_PORT); mesh.onReceive(&receivedCallback); diff --git a/src/display/Display.cpp b/src/display/Display.cpp index bae4b6d..9451758 100644 --- a/src/display/Display.cpp +++ b/src/display/Display.cpp @@ -18,7 +18,7 @@ void Display::begin(void){ PowerParameters::PowerConsumers::DISPLAY_OLED, PowerParameters::CurrentConsumptions::CURRENT_DISPLAY ,DISPLAY_MAX_EXECUTION_DELAY_MS, NULL)){ ESP_LOGE(TAG,"Could not get power for Display"); - throw "Could not get power for Display"; + Serial.println("Could not get power for Display"); } //set Mux Ratio sendDisplayCMD(muxRatio); diff --git a/src/lightDetection/LightDetection.cpp b/src/lightDetection/LightDetection.cpp index b33588a..2d07cff 100644 --- a/src/lightDetection/LightDetection.cpp +++ b/src/lightDetection/LightDetection.cpp @@ -69,7 +69,7 @@ void LightDetection::beginInfrared(void){ PowerParameters::CurrentConsumptions::CURRENT_PT * 4, LIGHT_DETECTION_MAX_EXECUTION_DELAY_MS, NULL)) { ESP_LOGE(TAG,"Could not get power for Infrared Phototransistors"); - throw "Could not get power for Infrared Phototransistors"; + Serial.println("Could not get power for Infrared Phototransistors"); } digitalWrite(IR_PT_ENABLE,true); pinMode(IR_PT_ENABLE, OUTPUT); @@ -85,7 +85,7 @@ void LightDetection::beginDaylight(void){ PowerParameters::CurrentConsumptions::CURRENT_PT * 2, LIGHT_DETECTION_MAX_EXECUTION_DELAY_MS, NULL)) { ESP_LOGE(TAG,"Could not get power for Daylight Phototransistors"); - throw "Could not get power for Daylight Phototransistors"; + Serial.println("Could not get power for Daylight Phototransistors"); } digitalWrite(DL_PT_ENABLE,true); pinMode(DL_PT_ENABLE, OUTPUT); diff --git a/src/motionDetection/MotionDetection.cpp b/src/motionDetection/MotionDetection.cpp index 6d278c8..9872059 100644 --- a/src/motionDetection/MotionDetection.cpp +++ b/src/motionDetection/MotionDetection.cpp @@ -11,7 +11,7 @@ void MotionDetection::begin(void){ PowerParameters::CurrentConsumptions::CURRENT_IMU, IMU_MAX_EXECUTION_DELAY_MS, NULL)) { ESP_LOGE(TAG, "Could not get power for MotionDetection"); - throw "Could not get power for MotionDetection"; + Serial.println("Could not get power for MotionDetection"); } pinMode(34,OUTPUT); digitalWrite(34,HIGH); diff --git a/src/multiColorLight/MultiColorLight.cpp b/src/multiColorLight/MultiColorLight.cpp index a75c0a6..03759be 100644 --- a/src/multiColorLight/MultiColorLight.cpp +++ b/src/multiColorLight/MultiColorLight.cpp @@ -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(); diff --git a/src/power/Power.cpp b/src/power/Power.cpp index dcd7eab..3525453 100644 --- a/src/power/Power.cpp +++ b/src/power/Power.cpp @@ -38,7 +38,7 @@ void Power::begin() { PowerParameters::PowerConsumers::ESP, PowerParameters::CurrentConsumptions::CURRENT_ESP_AVG))) { ESP_LOGE(TAG, "Could not get power for ESP"); - throw "Could not get power for ESP"; + Serial.println("Could not get power for ESP"); } } }