dont process data from serial line if print is saved (crash detection and filament detection)
This commit is contained in:
parent
209209459d
commit
1e60390545
@ -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
|
||||
gcode_LastN = saved_sdpos; //saved_sdpos was reused for storing line number when usb printing
|
||||
serial_count = 0;
|
||||
FlushSerialRequestResend();
|
||||
}
|
||||
else {
|
||||
|
@ -385,7 +385,8 @@ void get_command()
|
||||
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();
|
||||
/* if (selectedSerialPort == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user