Unexpected Code Growth

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

Well, those debug statements were keeping the entropy in check, see...?

;D

j/k - really, if this is happenning, I am not sure why and would be interested in the real answer!

Provide a complete Sketch and someone will provide an answer.

Nice !

What happens if you remove one ‘serial.print’ at a time ?

Not sure if this will help, but I am curious …