Skip to content

Commit 9be3d9f

Browse files
committed
screen.c: do not call delay_ms if duration is 0
The new ASF drivers changed the behavior of delay_ms. Calling it with 0 seems to mean delay forever and not 0 ms.
1 parent b22f44a commit 9be3d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/screen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void screen_print_debug(const char* message, int duration)
4343
UG_FontSelect(&font_font_a_9X9);
4444
UG_PutString(0, 0, print, false);
4545
UG_SendBuffer();
46-
delay_ms(duration);
46+
if (duration > 0) delay_ms(duration);
4747
}
4848

4949
void screen_sprintf_debug(int duration, const char* fmt, ...)

0 commit comments

Comments
 (0)