From 09dc358beeb3be715176f5fc28e9307fc36d4185 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Sun, 17 Jan 2016 01:17:28 +0100 Subject: Change the debug menu to show CPU frequency in MHz. Change-Id: Ibda9ceecbdd3c5548ccf0467c77c3fb4d4412c70 --- apps/debug_menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 2b9702299b..6676a84d4b 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -792,7 +792,8 @@ static bool dbg_cpufreq(void) { line = 0; - lcd_putsf(0, line++, "Frequency: %ld", FREQ); + int temp = FREQ/1000000; + lcd_putsf(0, line++, "Frequency: %ld.%ld MHz", temp, (FREQ-temp*1000000)/100000); lcd_putsf(0, line++, "boost_counter: %d", get_cpu_boost_counter()); lcd_update(); -- cgit v1.2.3