Fixing Issues #593 & #591 (#594)

* Add condition to check Low Power Mode

* Added WeatherStation libs platform.ini
This commit is contained in:
Jonathan authored and GitHub committed 2020-05-01 08:18:56 -05:00
1 parent cf641851af
commit 125e7d4f70
2 files changed
+8 -1

No files matched your search

+3 -1
View File
@@ -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();