🎨 Misc. shorthand operators
This commit is contained in:
@ -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