octoprint fan error fix
This commit is contained in:
parent
e6255e8451
commit
b8fec59f21
|
|
@ -3393,8 +3393,15 @@ void process_commands()
|
|||
if (fan_check_error){
|
||||
if( fan_check_error == EFCE_DETECTED ){
|
||||
fan_check_error = EFCE_REPORTED;
|
||||
lcd_pause_print();
|
||||
} // otherwise it has already been reported, so just ignore further processing
|
||||
|
||||
if(is_usb_printing){
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_PAUSE);
|
||||
}
|
||||
else{
|
||||
lcd_pause_print();
|
||||
}
|
||||
|
||||
} // otherwise it has already been reported, so just ignore further processing
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -524,6 +524,8 @@ void checkFanSpeed()
|
|||
fan_speed_errors[1] = 0;
|
||||
fanSpeedError(1); //print fan
|
||||
}
|
||||
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_OK); //for octoprint
|
||||
}
|
||||
|
||||
//! Prints serialMsg to serial port, displays lcdMsg onto the LCD and beeps.
|
||||
|
|
@ -547,7 +549,6 @@ void fanSpeedError(unsigned char _fan) {
|
|||
}
|
||||
else {
|
||||
fan_check_error = EFCE_DETECTED;
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_PAUSE);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -1658,6 +1658,7 @@ void lcd_pause_print()
|
|||
{
|
||||
lcd_commands_type = LcdCommands::LongPause;
|
||||
}
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_PAUSE); //pause for octoprint
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue