summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2016-01-17 01:17:28 +0100
committerMichael Giacomelli <giac2000@hotmail.com>2016-01-17 01:17:28 +0100
commit09dc358beeb3be715176f5fc28e9307fc36d4185 (patch)
tree14142111ed5e17ce4d76f693b14c161b6329cca0
parent5aa15c4e095d3dd2f07dcd3864129b77c5446dcd (diff)
downloadrockbox-09dc358beeb3be715176f5fc28e9307fc36d4185.tar.gz
rockbox-09dc358beeb3be715176f5fc28e9307fc36d4185.zip
Change the debug menu to show CPU frequency in MHz.
Change-Id: Ibda9ceecbdd3c5548ccf0467c77c3fb4d4412c70
-rw-r--r--apps/debug_menu.c3
1 files changed, 2 insertions, 1 deletions
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)
792 { 792 {
793 line = 0; 793 line = 0;
794 794
795 lcd_putsf(0, line++, "Frequency: %ld", FREQ); 795 int temp = FREQ/1000000;
796 lcd_putsf(0, line++, "Frequency: %ld.%ld MHz", temp, (FREQ-temp*1000000)/100000);
796 lcd_putsf(0, line++, "boost_counter: %d", get_cpu_boost_counter()); 797 lcd_putsf(0, line++, "boost_counter: %d", get_cpu_boost_counter());
797 798
798 lcd_update(); 799 lcd_update();