|
|
@ -357,9 +357,9 @@ static void screen_menu(GuiEvent event, const char **options, menu_callback_t cb |
|
|
|
if (tickNow - menu->change_time >= pdMS_TO_TICKS(500)) { |
|
|
|
if (tickNow - menu->change_time >= pdMS_TO_TICKS(500)) { |
|
|
|
const uint32_t textlen = strlen(options[menu->pos]) * 6; |
|
|
|
const uint32_t textlen = strlen(options[menu->pos]) * 6; |
|
|
|
if (textlen >= FBW - 2) { |
|
|
|
if (textlen >= FBW - 2) { |
|
|
|
if (textlen - menu->text_slide > FBW - 2) { |
|
|
|
if (textlen - menu->text_slide > FBW - 1) { |
|
|
|
menu->text_slide += 1; |
|
|
|
menu->text_slide += 1; |
|
|
|
if (textlen - menu->text_slide > FBW - 2) { |
|
|
|
if (textlen - menu->text_slide >= FBW - 1) { |
|
|
|
menu->slide_end_time = tickNow; |
|
|
|
menu->slide_end_time = tickNow; |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (tickNow - menu->slide_end_time >= pdMS_TO_TICKS(500)) { |
|
|
|
} else if (tickNow - menu->slide_end_time >= pdMS_TO_TICKS(500)) { |
|
|
|