Skip to content

Commit

Permalink
fixed reading reference values from SD card
Browse files Browse the repository at this point in the history
  • Loading branch information
roblehmann committed Dec 16, 2015
1 parent 8b41ef4 commit 947d9d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions logging.ino
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ boolean loadParameters()
sdin.skipWhite();
if (sdin.fail())
sendError(F("Bad input in parameter file"));

// error in line if not commas
// if (cs[j] != sep)
// sendError(F("Comma"));
Expand All @@ -396,11 +397,12 @@ boolean loadParameters()

// set last reference values
for(int i=0; i<numChambers; i++)
{
for(int j=0; j<6; j++)
{
refValues[i][j] = resArr[numChambers][j];
refValues[i][j] = resArr[i+1][j];
}

}
// sampling frequency
sensorSamplingTime = resArr[numChambers + 1][0];

Expand Down Expand Up @@ -490,7 +492,7 @@ boolean saveParameters()
}
file.print(sensorSamplingTime);
file.print(sep);
for(int j=0; j<3; j++)
for(int j = 0; j < 3; j++)
{
file.print(lightProfileIdx[j]);
file.print(sep);
Expand Down

0 comments on commit 947d9d6

Please sign in to comment.