Update 'firmware/firmware.ino'
Removed variable check which is always true.
This commit is contained in:
parent
6c6f568ab1
commit
c1b19add3b
1 changed files with 2 additions and 4 deletions
|
@ -150,9 +150,7 @@ int energySavingMode() {
|
||||||
// Is the battery low?
|
// Is the battery low?
|
||||||
if (currentSensorData[SENSOR_BAT_VOLTAGE] <= BAT_LOW_VOLTAGE) {
|
if (currentSensorData[SENSOR_BAT_VOLTAGE] <= BAT_LOW_VOLTAGE) {
|
||||||
// Entering energy saving
|
// Entering energy saving
|
||||||
if (energySavingIterations == 0) {
|
energySavingIterations = ENERGY_SAVING_ITERATIONS;
|
||||||
energySavingIterations = ENERGY_SAVING_ITERATIONS;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -231,4 +229,4 @@ void _loop() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//*************************************************************************//
|
//*************************************************************************//
|
||||||
|
|
Loading…
Reference in a new issue