mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-14 06:21:41 +02:00
Change approach of notifying of power problem to be more beginner friendly
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user