diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2016-01-17 01:17:28 +0100 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2016-01-17 01:17:28 +0100 |
commit | 09dc358beeb3be715176f5fc28e9307fc36d4185 (patch) | |
tree | 14142111ed5e17ce4d76f693b14c161b6329cca0 | |
parent | 5aa15c4e095d3dd2f07dcd3864129b77c5446dcd (diff) | |
download | rockbox-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.c | 3 |
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(); |