Servo control

char c;
char buffer[4];
byte index;

buffer is WAY too small. I suggested a size of 40, not 4!