fixed divide by zero issue

This commit is contained in:
Dorian Zedler 2020-12-15 11:49:21 +01:00
parent 80a6e99e17
commit a0b4778bbe
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37

View file

@ -192,7 +192,7 @@ void LedDisplayController::disp_start_set()
void LedDisplayController::disp_scroll_text()
{
if (millis() - last_display_show_ms > display_show_wait_ms)
if (millis() - last_display_show_ms > display_show_wait_ms && text_sets.sets[text_curr_nr].scrollSpeed != 0)
{
last_display_show_ms = millis();