Yet, one moe visual feedback improvement

This commit is contained in:
eshifri
2021-08-17 17:15:07 -07:00
parent 83ce5b627c
commit cb42a7665a
+2
View File
@@ -123,6 +123,7 @@ void SwitchChoice::onEvent(event_t event)
if (event == EVT_KEY_LONG(KEY_ENTER)) {
int16_t val = getValue();
setValue(-val);
invalidate();
}
else if (event == EVT_KEY_BREAK(KEY_ENTER)) {
editMode = true;
@@ -153,6 +154,7 @@ void SwitchChoice::checkEvents(void)
if (isLongPress()) {
int16_t val = getValue();
setValue(-val);
invalidate();
duration10ms = 1;
}