Skip to content

Commit

Permalink
PRUSA_SN: Always check available on serialPort 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbel committed Jun 16, 2020
1 parent 11d9af3 commit c777855
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3315,7 +3315,12 @@ static void gcode_PRUSA_SN()
timeout.start();

while (numbersRead < 19) {
while (MSerial.available() > 0) {
int available = 0;
{
SerialPortHelper(0);
available = MSerial.available();
}
if (available > 0) {
uint8_t serial_char = '?';
{
SerialPortHelper(0);
Expand Down

0 comments on commit c777855

Please sign in to comment.