dont process data from serial line if print is saved (crash detection and filament detection)
This commit is contained in:
parent
209209459d
commit
1e60390545
2 changed files with 6 additions and 4 deletions
|
@ -8926,6 +8926,7 @@ void restore_print_from_ram_and_continue(float e_move)
|
||||||
}
|
}
|
||||||
else if (saved_printing_type == PRINTING_TYPE_USB) { //was usb printing
|
else if (saved_printing_type == PRINTING_TYPE_USB) { //was usb printing
|
||||||
gcode_LastN = saved_sdpos; //saved_sdpos was reused for storing line number when usb printing
|
gcode_LastN = saved_sdpos; //saved_sdpos was reused for storing line number when usb printing
|
||||||
|
serial_count = 0;
|
||||||
FlushSerialRequestResend();
|
FlushSerialRequestResend();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -385,7 +385,8 @@ void get_command()
|
||||||
rx_buffer_full = true; //sets flag that buffer was full
|
rx_buffer_full = true; //sets flag that buffer was full
|
||||||
}
|
}
|
||||||
|
|
||||||
while (MYSERIAL.available() > 0) {
|
// start of serial line processing loop
|
||||||
|
while (MYSERIAL.available() > 0 && !saved_printing) { //is print is saved (crash detection or filament detection), dont process data from serial line
|
||||||
|
|
||||||
char serial_char = MYSERIAL.read();
|
char serial_char = MYSERIAL.read();
|
||||||
/* if (selectedSerialPort == 1)
|
/* if (selectedSerialPort == 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue