diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 08ff40dbe..9c49cf79c 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -528,7 +528,11 @@ void checkFanSpeed() } } -void fanSpeedErrorBeep(const char *serialMsg, const char *lcdMsg){ +//! Prints serialMsg to serial port, displays lcdMsg onto the LCD and beeps. +//! Extracted from fanSpeedError to save some space. +//! @param serialMsg pointer into PROGMEM, this text will be printed to the serial port +//! @param lcdMsg pointer into PROGMEM, this text will be printed onto the LCD +static void fanSpeedErrorBeep(const char *serialMsg, const char *lcdMsg){ SERIAL_ECHOLNRPGM(serialMsg); if (get_message_level() == 0) { if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE)||(eSoundMode==e_SOUND_MODE_SILENT)){ diff --git a/Firmware/temperature.h b/Firmware/temperature.h old mode 100644 new mode 100755 index 5b22e3a5a..27a7e713d --- a/Firmware/temperature.h +++ b/Firmware/temperature.h @@ -238,7 +238,11 @@ void checkExtruderAutoFans(); #if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 > -1)) -enum { EFCE_OK = 0, EFCE_DETECTED, EFCE_REPORTED }; +enum { + EFCE_OK = 0, //!< normal operation, both fans are ok + EFCE_DETECTED, //!< fan error detected, but not reported yet + EFCE_REPORTED //!< fan error detected and reported to LCD and serial +}; extern volatile uint8_t fan_check_error; void countFanSpeed();