Potential fix for serial corruption upon connection in rare cases

This commit is contained in:
Josh Stewart 2016-06-17 14:40:27 +10:00
parent c65d0fecc0
commit 35d82e9563
1 changed files with 7 additions and 5 deletions

View File

@ -60,15 +60,17 @@ void command()
case 'S': // send code version case 'S': // send code version
//Serial.print(signature); //Serial.print(signature);
//break; //break;
/*
char titleString[18]; char titleString[18];
strcat(titleString, displaySignature); strcat(titleString, displaySignature);
strcat(titleString, " "); strcat(titleString, " ");
strcat(titleString, TSfirmwareVersion); strcat(titleString, TSfirmwareVersion);
Serial.print(titleString); //Serial.print(titleString);
//Serial.write(titleString,16); //Serial.write(titleString,16);
//Serial.write("Speeduino 2016.05",18); */
Serial.print("Speeduino 2016.06-pre");
break; break;
case 'Q': // send code version case 'Q': // send code version
@ -170,6 +172,8 @@ void command()
sendToothLog(true); //Sends tooth log values as chars sendToothLog(true); //Sends tooth log values as chars
break; break;
case '?': case '?':
Serial.println Serial.println
(F( (F(
@ -261,8 +265,6 @@ void sendValues(int length)
cli(); cli();
Serial.write(response, (size_t)packetSize); Serial.write(response, (size_t)packetSize);
sei(); sei();
//if(Serial.available()) { command(); }
//Serial.flush();
return; return;
} }