[SOLVED]Servos write wrong value when using SD card

kf2qd:
How about printing out the number from the SD card file before multiplying? Are you sure the the negative number is not because of overflow in the multiplication?

Make sure you are reading the data correctly or getting the correct data first.

That's a good idea, I'll have to look into overflow for one of the functions (strtok or atoi). For my program, the multiplication is for debugging only. servo.read() returns an angle and I want to read it as microseconds, so I multiply by 16.67.

Here's the first few commands, nothing really special about them and certainly not near the overflow for int.

1275
1300
1275
1304
1276