[chronojump/michrolab] Fixed name of jumpType.txt file
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [chronojump/michrolab] Fixed name of jumpType.txt file
- Date: Wed, 20 Jul 2022 08:09:11 +0000 (UTC)
commit 6d98341819bfc5f57240a9b556483cfeb7f67f4e
Author: Xavier Padullés <testing chronojump org>
Date:   Wed Jul 20 10:08:34 2022 +0200
    Fixed name of jumpType.txt file
 arduino/michrolab/exercsiseManage.ino | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/arduino/michrolab/exercsiseManage.ino b/arduino/michrolab/exercsiseManage.ino
index 51ed3427e..3da140eb6 100644
--- a/arduino/michrolab/exercsiseManage.ino
+++ b/arduino/michrolab/exercsiseManage.ino
@@ -9,7 +9,7 @@ void readJumpsFile(){
   */
   String row = "";
   char readChar;
-  File  jumpsFile = SD.open("jumpTypes.txt");
+  File  jumpsFile = SD.open("/jumpType.txt");
   if (jumpsFile)
   {
     currentJumpType = 0;
@@ -19,7 +19,6 @@ void readJumpsFile(){
     while (currentJumpType < totalJumpTypes)
     {
       readChar = jumpsFile.read();
-      Serial.println("-");
       if (readChar != '\n' && readChar != '\r')
       {
         row = row + readChar;
@@ -29,13 +28,12 @@ void readJumpsFile(){
         row = "";
         currentJumpType++;
       }
-      Serial.println(row);
     }
     // close the file:
     jumpsFile.close();
   } else {
     // if the file didn't open, print an error:
-    Serial.println("error opening jumpTypes.txt");
+    Serial.println("error opening jumpType.txt");
   } 
 }
 
@@ -60,7 +58,7 @@ unsigned int getTotalJumpTypes()
 {
   char readChar;
   String readString = "";
-  File  jumpsFile = SD.open("jumpTypes.txt");
+  File  jumpsFile = SD.open("jumpType.txt");
   if (jumpsFile)
   {
     //Start reading from the last byte
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]