My troublesome discovery:
if (abs(DistX) > abs(DistY)) {
Serial.print("D");
MotY->GoTo( DestY - (DestX - MotX->IsAt()) * Ratio, 1.0 ) ;
} else {
Serial.print("d");
MotX->GoTo( DestX - (DestY - MotY->IsAt()) * Ratio, 1.0 ) ;
}
Claims Binary sketch size 8936
if (abs(DistX) > abs(DistY)) {
//Serial.print("D");
MotY->GoTo( DestY - (DestX - MotX->IsAt()) * Ratio, 1.0 ) ;
} else {
//Serial.print("d");
MotX->GoTo( DestX - (DestY - MotY->IsAt()) * Ratio, 1.0 ) ;
}
Claims Binary sketch size 9074 bytes
Taking the debug print statment out increased the size ? :question