Fixed problem where controller fan was not running

master
Marcio Teixeira 7 years ago
parent 3817fdfadd
commit c9fb50d055

@ -39,7 +39,7 @@
#error Must specify model and toolhead. Please see "Configuration_LulzBot.h" for directions. #error Must specify model and toolhead. Please see "Configuration_LulzBot.h" for directions.
#endif #endif
#define LULZBOT_FW_VERSION ".1" #define LULZBOT_FW_VERSION ".2"
// Select options based on printer model // Select options based on printer model
@ -482,6 +482,7 @@
*/ */
#define LULZBOT_HIDE_ACTIVE_NOZZLE_IN_LCD #define LULZBOT_HIDE_ACTIVE_NOZZLE_IN_LCD
#define LULZBOT_HIDE_PID_CONFIG_IN_LCD #define LULZBOT_HIDE_PID_CONFIG_IN_LCD
#define LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD
#define LULZBOT_SCROLL_LONG_FILE_NAMES #define LULZBOT_SCROLL_LONG_FILE_NAMES
#endif #endif

@ -12725,7 +12725,6 @@ void prepare_move_to_destination() {
#endif // BEZIER_CURVE_SUPPORT #endif // BEZIER_CURVE_SUPPORT
#if ENABLED(USE_CONTROLLER_FAN) #if ENABLED(USE_CONTROLLER_FAN)
void controllerFan() { void controllerFan() {
static millis_t lastMotorOn = 0, // Last time a motor was turned on static millis_t lastMotorOn = 0, // Last time a motor was turned on
nextMotorCheck = 0; // Last time the state was checked nextMotorCheck = 0; // Last time the state was checked

@ -162,10 +162,10 @@
#if defined(LULZBOT_EXTRUDER_FAN_ON_PIN_6) #if defined(LULZBOT_EXTRUDER_FAN_ON_PIN_6)
#define FAN_PIN 6 #define FAN_PIN 6
//#define FAN1_PIN 8 #define FAN1_PIN 8
#else #else
#define FAN_PIN 8 #define FAN_PIN 8
//#define FAN1_PIN 6 #define FAN1_PIN 6
#endif #endif
#define FAN2_PIN 2 #define FAN2_PIN 2

@ -1220,10 +1220,10 @@ void kill_screen(const char* lcd_msg) {
#endif #endif
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_1ST_FAN_SPEED, &fanSpeeds[0], 0, 255); MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_1ST_FAN_SPEED, &fanSpeeds[0], 0, 255);
#endif #endif
#if HAS_FAN1 #if HAS_FAN1 && !defined(LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD)
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 2", &fanSpeeds[1], 0, 255); MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 2", &fanSpeeds[1], 0, 255);
#endif #endif
#if HAS_FAN2 #if HAS_FAN2 && !defined(LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD)
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 3", &fanSpeeds[2], 0, 255); MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 3", &fanSpeeds[2], 0, 255);
#endif #endif
#endif // FAN_COUNT > 0 #endif // FAN_COUNT > 0
@ -3123,10 +3123,10 @@ void kill_screen(const char* lcd_msg) {
#endif #endif
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_1ST_FAN_SPEED, &fanSpeeds[0], 0, 255); MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_1ST_FAN_SPEED, &fanSpeeds[0], 0, 255);
#endif #endif
#if HAS_FAN1 #if HAS_FAN1 && !defined(LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD)
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 2", &fanSpeeds[1], 0, 255); MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 2", &fanSpeeds[1], 0, 255);
#endif #endif
#if HAS_FAN2 #if HAS_FAN2 && !defined(LULZBOT_HIDE_EXTRA_FAN_CONFIG_IN_LCD)
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 3", &fanSpeeds[2], 0, 255); MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 3", &fanSpeeds[2], 0, 255);
#endif #endif
#endif // FAN_COUNT > 0 #endif // FAN_COUNT > 0

Loading…
Cancel
Save