Skip to content

Commit 83c61be

Browse files
committed
Update OpenLog_Artemis.ino
1 parent 8ad4b40 commit 83c61be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Firmware/OpenLog_Artemis/OpenLog_Artemis.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@ void setup() {
468468
else
469469
{
470470
Serial1.flush(); //Complete any previous prints
471-
Serial1.end(); // Stop the SerialLog port
471+
if (settings.logSerial == false)
472+
Serial1.end(); // Stop the SerialLog port - but only if not logging serial, otherwise incoming data can cause a crash!
472473
}
473474

474475
Serial.flush(); //Complete any previous prints

0 commit comments

Comments
 (0)