mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-28 02:49:27 +00:00
added else case to end of receive loop to troubleshoot tempOutput
This commit is contained in:
parent
2bb6d39e94
commit
385003d534
@ -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;
|
||||
}
|
||||
}
|
||||
|
BIN
dist/MessagesForMacintosh.dsk
vendored
BIN
dist/MessagesForMacintosh.dsk
vendored
Binary file not shown.
BIN
dist/MessagesForMacintosh.zip
vendored
BIN
dist/MessagesForMacintosh.zip
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user