[chronojump/michrolab] Minor change
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] Minor change
- Date: Fri, 16 Sep 2022 18:10:48 +0000 (UTC)
commit adb0b6ea7e12ab0dda5532a7b9ef00b4627bea5b
Author: Xavier Padullés <testing chronojump org>
Date: Fri Sep 16 19:20:37 2022 +0200
Minor change
arduino/michrolab/exercsiseManage.ino | 12 ------------
arduino/michrolab/michrolab.ino | 3 ---
arduino/michrolab/personsManage.ino | 1 +
3 files changed, 1 insertion(+), 15 deletions(-)
---
diff --git a/arduino/michrolab/exercsiseManage.ino b/arduino/michrolab/exercsiseManage.ino
index f26a81c7d..29a83035b 100644
--- a/arduino/michrolab/exercsiseManage.ino
+++ b/arduino/michrolab/exercsiseManage.ino
@@ -8,32 +8,26 @@ void addJump(String row)
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
jumpTypes[totalJumpTypes].name = row.substring(prevComaIndex + 1 , nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
jumpTypes[totalJumpTypes].jumpLimit = row.substring(prevComaIndex + 1, nextComaIndex).toInt();
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
jumpTypes[totalJumpTypes].timeLimit = row.substring(prevComaIndex + 1, nextComaIndex).toFloat();
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
jumpTypes[totalJumpTypes].hardTimeLimit = (row.substring(prevComaIndex + 1 , nextComaIndex) == 1);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
jumpTypes[totalJumpTypes].percentBodyWeight = row.substring(prevComaIndex + 1 , nextComaIndex).toFloat();
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
jumpTypes[totalJumpTypes].fall = row.substring(prevComaIndex + 1, nextComaIndex).toFloat();
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
jumpTypes[totalJumpTypes].startIn = (row.substring(prevComaIndex + 1, prevComaIndex + 2) == "1");
@@ -75,17 +69,14 @@ void addGravitatory(String row)
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
gravTypes[totalGravTypes].name = row.substring(prevComaIndex + 1 , nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
gravTypes[totalGravTypes].description = row.substring(prevComaIndex + 1, nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
gravTypes[totalGravTypes].percentBodyWeight = row.substring(prevComaIndex + 1 , nextComaIndex).toFloat();
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
@@ -124,17 +115,14 @@ void addInertial(String row)
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
inertTypes[totalInertTypes].name = row.substring(prevComaIndex + 1 , nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
inertTypes[totalInertTypes].description = row.substring(prevComaIndex + 1, nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
inertTypes[totalInertTypes].percentBodyWeight = row.substring(prevComaIndex + 1 , nextComaIndex).toFloat();
- prevComaIndex = nextComaIndex;
totalInertTypes++;
}
diff --git a/arduino/michrolab/michrolab.ino b/arduino/michrolab/michrolab.ino
index 276967d13..926a9fb2e 100644
--- a/arduino/michrolab/michrolab.ino
+++ b/arduino/michrolab/michrolab.ino
@@ -2061,17 +2061,14 @@ void addInertMachine(String row)
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
inertMachines[totalInertMachines].name = row.substring(prevComaIndex + 1 , nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
inertMachines[totalInertMachines].description = row.substring(prevComaIndex + 1, nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
inertMachines[totalInertMachines].diameters = row.substring(prevComaIndex + 1 , nextComaIndex);
- prevComaIndex = nextComaIndex;
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
diff --git a/arduino/michrolab/personsManage.ino b/arduino/michrolab/personsManage.ino
index 00fd7c244..e53b35a42 100644
--- a/arduino/michrolab/personsManage.ino
+++ b/arduino/michrolab/personsManage.ino
@@ -50,6 +50,7 @@ void addPerson(String row)
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
persons[totalPersons].name = row.substring(prevComaIndex + 1 , nextComaIndex);
+
prevComaIndex = nextComaIndex;
nextComaIndex = row.indexOf(",", prevComaIndex + 1 );
persons[totalPersons].surname = row.substring(prevComaIndex + 1 , nextComaIndex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]