Browse Source

Update 'firmware/firmware.ino'

Removed variable check which is always true.
klaute 1 year ago
parent
commit
c1b19add3b
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      firmware/firmware.ino

+ 2
- 4
firmware/firmware.ino View File

@@ -150,9 +150,7 @@ int energySavingMode() {
150 150
   // Is the battery low?
151 151
   if (currentSensorData[SENSOR_BAT_VOLTAGE] <= BAT_LOW_VOLTAGE) {
152 152
     // Entering energy saving
153
-    if (energySavingIterations == 0) {
154
-      energySavingIterations = ENERGY_SAVING_ITERATIONS;
155
-    }
153
+    energySavingIterations = ENERGY_SAVING_ITERATIONS;
156 154
 
157 155
     return 1;
158 156
   }
@@ -231,4 +229,4 @@ void _loop() {
231 229
 
232 230
 }
233 231
 
234
-//*************************************************************************//
232
+//*************************************************************************//

Loading…
Cancel
Save