timers: create proper timeouts

This commit is contained in:
Vasily Davydov
2022-10-27 18:05:16 +03:00
parent 6cf950cc98
commit dc43afd441
4 changed files with 11 additions and 10 deletions

View File

@@ -117,6 +117,7 @@ private:
int saved_curr_value[2] = { 0, 0 };
int sensors_data[4] = { 0 };
int sensor_timer = 0;
int error_timer = 0;
LiquidCrystal *_lcd;
Fan *_propeller;
PressureWrapper *_pressure;

View File

@@ -18,8 +18,8 @@
enum _global_values
{
LCD_SIZE = 16,
TIMER_GLOBAL_TIMEOUT = 120000,
TIMER_SENSORS_TIMEOUT = 5,
TIMER_GLOBAL_TIMEOUT = 10000,
TIMER_SENSORS_TIMEOUT = 5000,
TIMER_PRESSURE_TIMEOUT = 150,
TIMER_ERROR_VALUE = -255,
};