|
@@ -40,7 +40,7 @@
|
|
|
#include <avr/wdt.h>
|
|
|
#include "adc.h"
|
|
|
#include "ConfigurationStore.h"
|
|
|
-
|
|
|
+#include "messages.h"
|
|
|
#include "Timer.h"
|
|
|
#include "Configuration_prusa.h"
|
|
|
|
|
@@ -541,18 +541,18 @@ static void fanSpeedErrorBeep(const char *serialMsg, const char *lcdMsg){
|
|
|
void fanSpeedError(unsigned char _fan) {
|
|
|
if (get_message_level() != 0 && isPrintPaused) return;
|
|
|
|
|
|
- if (card.sdprinting) {
|
|
|
+ if (card.sdprinting || is_usb_printing) {
|
|
|
if (heating_status != 0) {
|
|
|
lcd_print_stop();
|
|
|
}
|
|
|
else {
|
|
|
fan_check_error = EFCE_DETECTED;
|
|
|
- SERIAL_ECHOLNPGM("// action:pause");
|
|
|
+ SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_PAUSE);
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
+ SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_PAUSE);
|
|
|
setTargetHotend0(0);
|
|
|
- SERIAL_ECHOLNPGM("// action:pause");
|
|
|
}
|
|
|
switch (_fan) {
|
|
|
case 0:
|
|
@@ -562,6 +562,7 @@ void fanSpeedError(unsigned char _fan) {
|
|
|
fanSpeedErrorBeep(PSTR("Print fan speed is lower than expected"), PSTR("Err: PRINT FAN ERROR") );
|
|
|
break;
|
|
|
}
|
|
|
+ SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
|
|
}
|
|
|
#endif
|
|
|
|