Dependencies:   mbed FATFileSystem

Revision:
17:98127ac75195
Parent:
16:c8d68cbd1ae2
--- a/Menu/Menu.cpp	Thu May 09 09:58:51 2019 +0000
+++ b/Menu/Menu.cpp	Thu May 09 12:01:42 2019 +0000
@@ -85,7 +85,7 @@
 
 void Menu::highscores_loop(Gamepad &pad, N5110 &lcd, SDFileSystem &sd) //highscores screen loop
 { 
-    sd_read(sd); //reads values from highscores.txt file and sorts in ascending order
+    sd_read(sd); //reads values from highscores.txt file into array and sorts in ascending order
     while(pad.check_event(Gamepad::BACK_PRESSED) == false) {   //loops until back pressed
     
         lcd.clear();
@@ -93,7 +93,7 @@
     
         for(int i = 0; i < _n ; i++) { //displays highscores
             char buffer[14];
-            sprintf(buffer,"%i - %i", i + 1, _highscores_array[i]); 
+            sprintf(buffer,"%i - %i", i + 1, _highscores_array[i]); //prints values from highscores array
             lcd.printString(buffer,0,i+1);
         }