while(Serial.available()==0) {} loop falls through

1oldfox:
Hi ieee, thanks for the response. My SM is set with "no line ending".

You haven't posted your entire code, so not sure how anyone can debug.