Minor UI improvements
This commit is contained in:
parent
33ab540653
commit
47cf5388e3
@ -326,23 +326,24 @@ int main(void) {
|
|||||||
|
|
||||||
//Execute Calibrations if necessary
|
//Execute Calibrations if necessary
|
||||||
if (a_caliblow) {
|
if (a_caliblow) {
|
||||||
tankLevel0.calibrateLow();
|
|
||||||
controller.execute();
|
controller.execute();
|
||||||
HAL_Delay(2000);
|
tankLevel0.calibrateLow();
|
||||||
a_caliblow = false;
|
a_caliblow = false;
|
||||||
} else if (a_calibhigh) {
|
} else if (a_calibhigh) {
|
||||||
tankLevel0.calibrateHigh();
|
|
||||||
controller.execute();
|
controller.execute();
|
||||||
HAL_Delay(2000);
|
tankLevel0.calibrateHigh();
|
||||||
a_calibhigh = false;
|
a_calibhigh = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Store or restore if necessary
|
//Store or restore if necessary
|
||||||
if (f_store) {
|
if (f_store) {
|
||||||
|
controller.execute();
|
||||||
Config_Store::getInstance().saveToFlash();
|
Config_Store::getInstance().saveToFlash();
|
||||||
f_store = false;
|
f_store = false;
|
||||||
} else if (f_restore) {
|
} else if (f_restore) {
|
||||||
|
controller.execute();
|
||||||
Config_Store::getInstance().loadFromFlash();
|
Config_Store::getInstance().loadFromFlash();
|
||||||
|
HAL_Delay(300);
|
||||||
f_restore = false;
|
f_restore = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ namespace floatpump::menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto MenuEntryExecute::toString() -> std::string {
|
auto MenuEntryExecute::toString() -> std::string {
|
||||||
return buildString({(*m_storage) ? "[--]" : "[XX]"});
|
return buildString({(*m_storage) ? "[-]" : "[X]"});
|
||||||
}
|
}
|
||||||
|
|
||||||
auto MenuEntryNumeric::u_press() -> void {
|
auto MenuEntryNumeric::u_press() -> void {
|
||||||
|
Loading…
Reference in New Issue
Block a user