state-handler: cleanup, displaySet() can display sensors data or modes

This commit is contained in:
Evgenii Meshcheriakov
2022-10-25 14:56:53 +03:00
parent 893a41a7d7
commit 42251f7ed7
2 changed files with 23 additions and 40 deletions

View File

@@ -63,6 +63,12 @@ enum _mode
AUTO
};
enum _display
{
MODES,
SENSORS
};
enum _sensors
{
PRESSUREDAT,
@@ -98,11 +104,8 @@ public:
* MANUAL MODE: SPEED: XX% PRESSURE: XXPa
*
* AUTO MODE: P. SET: XXPa P. CURR: XXPa
*
* @param value1 value to be displayed on LCD line 0
* @param value2 value to be displayed on LCD line 1
*/
void displaySet (unsigned int value1, unsigned int value2);
void displaySet (bool sensors);
/** Display values of sensors readings on LCD
* needed only for Debug purposes