OfArduino sendString problem

Hi Guys

First time poster here , firstly thanks for all the helpful information I’ve found on these forums and around the documentation.

I have an issue I can’t seem to easily resolve. I am using OfArduino to communicate with my Arduino Uno board. I send it small strings via sendString() to get it to drive a stepper motor (using accelstepper). I’m using the latest StandardFirmata firmware and have created a simple callback

void stepperStringCallbackFunction(char *myString){

//[AXIS][IDENTIFIER][B1][B2][B3][B4]

char axis = myString[0]; //unused for time being.

char identifier = myString[1];

switch(identifier) {
case ‘S’:
unsigned int speedRps;
memcpy(&speedRps,&myString[2],4);
stepper.setMaxSpeed(speedRps);

case ‘A’:
unsigned int accel;
memcpy(&accel,&myString[2],4);
stepper.setAcceleration(accel);
break;
case ‘M’:
int moveToPosition;
memcpy(&moveToPosition,&myString[2],2);
stepper.moveTo(moveToPosition);
break;
}
}

However after about 124 calls to sendString() it stops processing any commands. I’m assuming that there is some sort of overflow situation happening? The leds on the board are still flashing to show business but the commands appear to stop being processes. This happens regardless of the type so I can send 124 , speed , acceleration or moveTo commands (which leads me to think that the AccelStepper is not blocking as the speed/acceleration are simply setters.

Any thoughts? Thanks in advance

Guy

Solved!

https://github.com/ firmata/arduino/issues/74

Memory leak for those interested. Who would have known.

Thanks

Guy