* Add condition to check Low Power Mode * Added WeatherStation libs platform.ini
This commit is contained in:
1 parent
cf641851af
commit
125e7d4f70
2 files changed
+8
-1
No files matched your search
+3
-1
@@ -580,7 +580,9 @@ void coreTask(void *pvParameters)
|
||||
if (low_power_mode == 2)
|
||||
digitalWrite(LOW_POWER_LED, 1 - LOW_POWER_LED_OFF);
|
||||
BLEscan();
|
||||
digitalWrite(LOW_POWER_LED, LOW_POWER_LED_OFF); // to switch off no need of condition
|
||||
//only change LOW_POWER_LED if low power mode is enabled
|
||||
if (low_power_mode)
|
||||
digitalWrite(LOW_POWER_LED, LOW_POWER_LED_OFF);
|
||||
}
|
||||
if(low_power_mode)
|
||||
lowPowerESP32();
|
||||
|
||||
Reference in new issue
Block a user