state-handler: fix auto mode

This commit is contained in:
Evgenii Meshcheriakov
2022-10-27 16:33:36 +03:00
parent 58dbbf0f06
commit fa8734a9a8
5 changed files with 34 additions and 7 deletions

View File

@@ -75,8 +75,10 @@ public:
private:
volatile std::atomic_int counter;
volatile std::atomic_int prev_ticks;
uint32_t freq;
bool mode;
};
#endif /* TIMER_H_ */

View File

@@ -18,9 +18,9 @@
enum _global_values
{
LCD_SIZE = 16,
TIMER_GLOBAL_TIMEOUT = 15000,
TIMER_GLOBAL_TIMEOUT = 120000,
TIMER_SENSORS_TIMEOUT = 5000,
TIMER_PRESSURE_TIMEOUT = 500,
TIMER_PRESSURE_TIMEOUT = 250,
TIMER_ERROR_VALUE = -255,
};