1
0
forked from me/IronOS

Fix userConfirmation scroll speed (#878)

This commit is contained in:
alvinhochun
2021-03-15 19:37:12 +08:00
committed by GitHub
parent 337c932b23
commit 603d9d0ac2

View File

@@ -276,7 +276,7 @@ static int userConfirmation(const char *message) {
bool lcdRefresh = true;
for (;;) {
int16_t messageOffset = ((xTaskGetTickCount() - messageStart) / (systemSettings.descriptionScrollSpeed == 1 ? TICKS_100MS : (TICKS_100MS * 2)));
int16_t messageOffset = ((xTaskGetTickCount() - messageStart) / (systemSettings.descriptionScrollSpeed == 1 ? TICKS_100MS / 10 : (TICKS_100MS / 5)));
messageOffset %= messageWidth; // Roll around at the end
if (lastOffset != messageOffset) {