Wheres my voltage? (what am I doing wrong?)

I can post the code(s).. (both) to compare..

but they are NOT pretty.. lots of commented out lines..etc. for testing and notes..etc (yadda yadda)

and Im sure that my code is not 'great' (or pretty).. or as efficient/lean as it could be either.. (I hope that doesnt turn into the focus!) :wink:

let me clean it up a bit.. then post it..

here we go:

In the play file function...

you see this:

void playfile(char *name){
  //yadda yadda....
  putstring_nl("................motor off...");
  digitalWrite(motorPin, LOW);
}

if I leave the putstring_nl() in there.. works as it should (or at least as I am expecting it should)..

if I comment it out.. the motor stops working correctly..

my thinking now is that the putstring_nl() is giving the motor a smidge more time to actually turn on/run/move... where as otherwise it just toggles off too fast?

the motor is only suppose to be 'jogged' quickly.. (to rotate a gun barrel.. ie: think gatling gun type effect).. 1 time on trigger press.. in auto mode.. it obviously repeatedly 'jogs/toggles' the motor.. (looking like a continuous rotation...but it just continuous toggle/jogging in reality)

to be honest.. Im happy I 'stumbled' upon this.... and extra happy its working as it should.. (or as I "want it to" I'll say.. regardless of how I got here) LOL..

but I am curious as to WHY?

thanks