Skip to content

Commit

Permalink
Merge pull request #42 from rampageservices/trim-magCal
Browse files Browse the repository at this point in the history
trim list[4] so that it parses as an int correctly
  • Loading branch information
microbuilder authored Jan 11, 2018
2 parents 741a95a + 12f8537 commit e02f9bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/bunny/processing/cuberotate/cuberotate.pde
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void serialEvent(Serial p)
int sysCal = int(list[1]);
int gyroCal = int(list[2]);
int accelCal = int(list[3]);
int magCal = int(list[4]);
int magCal = int(trim(list[4]));
calLabel.setText("Calibration: Sys=" + sysCal + " Gyro=" + gyroCal + " Accel=" + accelCal + " Mag=" + magCal);
}
}
Expand Down

0 comments on commit e02f9bd

Please sign in to comment.