🎨 Misc. shorthand operators

This commit is contained in:
Scott Lahteine
2022-06-26 10:01:22 -05:00
parent 0435b2220a
commit 23f19e9ce8
8 changed files with 18 additions and 18 deletions

View File

@ -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;