Skip to content

Commit 01ae93f

Browse files
authored
Merge pull request #1397 from NickeZ/nickez/screen-0-delay
screen.c: do not call delay_ms if duration is 0
2 parents f890a6c + 9be3d9f commit 01ae93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/screen.c

+1-1
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)