summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 9b3e6e9..2279a27 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -323,9 +323,12 @@ static bool dbg_audio_thread(void)
lcd_puts(0, line++, buf);
#endif
- snprintf(buf, sizeof(buf), "boost ratio: %3d%%",
- boost_ticks * 100 / ticks);
- lcd_puts(0, line++, buf);
+ if (ticks > 0)
+ {
+ snprintf(buf, sizeof(buf), "boost ratio: %3d%%",
+ boost_ticks * 100 / ticks);
+ lcd_puts(0, line++, buf);
+ }
snprintf(buf, sizeof(buf), "pcmbufdesc: %2d/%2d",
pcmbuf_used_descs(), pcmbufdescs);