Change the debug menu to show CPU frequency in MHz.

Change-Id: Ibda9ceecbdd3c5548ccf0467c77c3fb4d4412c70
This commit is contained in:
Michael Giacomelli 2016-01-17 01:17:28 +01:00
parent 5aa15c4e09
commit 09dc358bee

View file

@ -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();