Advertisement
Guest User

Untitled

a guest
Jan 16th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. diff --git a/apps/debug_menu.c b/apps/debug_menu.c
  2. index 2b97022..6676a84 100644
  3. --- a/apps/debug_menu.c
  4. +++ b/apps/debug_menu.c
  5. @@ -792,7 +792,8 @@ static bool dbg_cpufreq(void)
  6.      {
  7.          line = 0;
  8.  
  9. -        lcd_putsf(0, line++, "Frequency: %ld", FREQ);
  10. +        int temp = FREQ/1000000;
  11. +        lcd_putsf(0, line++, "Frequency: %ld.%ld MHz", temp, (FREQ-temp*1000000)/100000);
  12.          lcd_putsf(0, line++, "boost_counter: %d", get_cpu_boost_counter());
  13.  
  14.          lcd_update();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement