Browse Source

fix number input when staying in same state

Thomas Buck 2 years ago
parent
commit
fa9a8e38eb
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      include/config.h
  2. 2
    0
      src/Statemachine.cpp

+ 1
- 1
include/config.h View File

31
 
31
 
32
 // in seconds
32
 // in seconds
33
 #define MAX_TANK_FILL_TIME (70)
33
 #define MAX_TANK_FILL_TIME (70)
34
-#define AUTO_PUMP_RUNTIME 3
34
+#define AUTO_PUMP_RUNTIME 4
35
 #define AUTO_STIRR_RUNTIME 60
35
 #define AUTO_STIRR_RUNTIME 60
36
 #define MAX_AUTO_PLANT_RUNTIME (35 * 60)
36
 #define MAX_AUTO_PLANT_RUNTIME (35 * 60)
37
 #define MAX_PUMP_RUNTIME 30
37
 #define MAX_PUMP_RUNTIME 30

+ 2
- 0
src/Statemachine.cpp View File

265
                     switch_to(error);
265
                     switch_to(error);
266
                 } else {
266
                 } else {
267
                     selected_plants.set(selected_id - 1);
267
                     selected_plants.set(selected_id - 1);
268
+                    menu_entered_digits = "";
268
                     switch_to(auto_plant);
269
                     switch_to(auto_plant);
269
                 }
270
                 }
270
             }
271
             }
387
                     switch_to(error);
388
                     switch_to(error);
388
                 } else {
389
                 } else {
389
                     selected_plants.set(selected_id - 1);
390
                     selected_plants.set(selected_id - 1);
391
+                    menu_entered_digits = "";
390
                     switch_to(fillnwater_plant);
392
                     switch_to(fillnwater_plant);
391
                 }
393
                 }
392
             }
394
             }

Loading…
Cancel
Save