mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2025-02-25 20:29:08 +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");
|
writeSerialPortDebug(boutRefNum, "readSerialPort, enter loop");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// wait a moment for the buffer to fill
|
||||||
|
wait(0.01);
|
||||||
|
|
||||||
while (!done) {
|
while (!done) {
|
||||||
|
|
||||||
if (loopCounter++ > MAX_RECIEVE_LOOP_ITERATIONS) {
|
if (loopCounter++ > MAX_RECIEVE_LOOP_ITERATIONS) {
|
||||||
@ -339,6 +342,14 @@ void readSerialPort(char* output) {
|
|||||||
// writeSerialPortDebug(boutRefNum, "\n");
|
// writeSerialPortDebug(boutRefNum, "\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
done = true;
|
||||||
|
} else {
|
||||||
|
|
||||||
|
#ifdef DEBUGGING
|
||||||
|
writeSerialPortDebug(boutRefNum, "receive loop complete, but terminator is missing");
|
||||||
|
writeSerialPortDebug(boutRefNum, tempOutput);
|
||||||
|
#endif
|
||||||
|
|
||||||
done = true;
|
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…
x
Reference in New Issue
Block a user