added else case to end of receive loop to troubleshoot tempOutput

This commit is contained in:
camh 2022-02-24 13:53:33 -08:00
parent 2bb6d39e94
commit 385003d534
3 changed files with 11 additions and 0 deletions

View File

@ -236,6 +236,9 @@ void readSerialPort(char* output) {
writeSerialPortDebug(boutRefNum, "readSerialPort, enter loop");
#endif
// wait a moment for the buffer to fill
wait(0.01);
while (!done) {
if (loopCounter++ > MAX_RECIEVE_LOOP_ITERATIONS) {
@ -339,6 +342,14 @@ void readSerialPort(char* output) {
// writeSerialPortDebug(boutRefNum, "\n");
#endif
done = true;
} else {
#ifdef DEBUGGING
writeSerialPortDebug(boutRefNum, "receive loop complete, but terminator is missing");
writeSerialPortDebug(boutRefNum, tempOutput);
#endif
done = true;
}
}

Binary file not shown.

Binary file not shown.