Skip to content

Commit a94ce9f

Browse files
committed
Always return to PRINT_TO_SERIAL at the end of a command
1 parent c360b10 commit a94ce9f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Firmware/LoRaSerial/Commands.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@ void checkCommand()
860860
systemPrintln("ERROR");
861861
commandComplete(false);
862862
}
863+
printerEndpoint = PRINT_TO_SERIAL;
863864
outputSerialData(true);
864865
petWDT();
865866

Firmware/LoRaSerial/Serial.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ void updateSerial()
375375
commandBuffer[0] = 'A'; //Convert this RT command to an AT command for local consumption
376376
printerEndpoint = PRINT_TO_RF; //Send prints to RF link
377377
checkCommand(); //Parse the command buffer
378-
printerEndpoint = PRINT_TO_SERIAL;
379378
remoteCommandResponse = true;
380379
}
381380
else

0 commit comments

Comments
 (0)