🎨 Misc. shorthand operators
This commit is contained in:
1 parent
0435b2220a
commit
23f19e9ce8
8 files changed
+18
-18
No files matched your search
@@ -175,7 +175,7 @@ void Touch::touch(touch_control_t *control) {
|
||||
ui.refresh();
|
||||
break;
|
||||
case PAGE_DOWN:
|
||||
encoderTopLine = encoderTopLine + 2 * LCD_HEIGHT < screen_items ? encoderTopLine + LCD_HEIGHT : screen_items - LCD_HEIGHT;
|
||||
encoderTopLine = (encoderTopLine + 2 * LCD_HEIGHT < screen_items) ? encoderTopLine + LCD_HEIGHT : screen_items - LCD_HEIGHT;
|
||||
ui.encoderPosition = ui.encoderPosition + LCD_HEIGHT < (uint32_t)screen_items ? ui.encoderPosition + LCD_HEIGHT : screen_items;
|
||||
ui.refresh();
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user