Merge pull request #6354 from thinkyhead/rc_doubleclick_fix
Fix undefined symbol if DOUBLECLICK_FOR_Z_BABYSTEPPING and HAS_BED_PROBE defined
This commit is contained in:
commit
4e04383d18
@ -51,7 +51,11 @@ int lcd_preheat_hotend_temp[2], lcd_preheat_bed_temp[2], lcd_preheat_fan_speed[2
|
|||||||
|
|
||||||
#if ENABLED(BABYSTEPPING)
|
#if ENABLED(BABYSTEPPING)
|
||||||
long babysteps_done = 0;
|
long babysteps_done = 0;
|
||||||
static void lcd_babystep_z();
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
||||||
|
static void lcd_babystep_zoffset();
|
||||||
|
#else
|
||||||
|
static void lcd_babystep_z();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t lcd_status_message_level;
|
uint8_t lcd_status_message_level;
|
||||||
@ -431,7 +435,13 @@ uint16_t max_display_update_time = 0;
|
|||||||
doubleclick_expire_ms = millis() + DOUBLECLICK_MAX_INTERVAL;
|
doubleclick_expire_ms = millis() + DOUBLECLICK_MAX_INTERVAL;
|
||||||
}
|
}
|
||||||
else if (screen == lcd_status_screen && currentScreen == lcd_main_menu && PENDING(millis(), doubleclick_expire_ms))
|
else if (screen == lcd_status_screen && currentScreen == lcd_main_menu && PENDING(millis(), doubleclick_expire_ms))
|
||||||
screen = lcd_babystep_z;
|
screen =
|
||||||
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
||||||
|
lcd_babystep_zoffset
|
||||||
|
#else
|
||||||
|
lcd_babystep_z
|
||||||
|
#endif
|
||||||
|
;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
currentScreen = screen;
|
currentScreen = screen;
|
||||||
@ -851,7 +861,7 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
void lcd_babystep_y() { lcd_goto_screen(_lcd_babystep_y); babysteps_done = 0; defer_return_to_status = true; }
|
void lcd_babystep_y() { lcd_goto_screen(_lcd_babystep_y); babysteps_done = 0; defer_return_to_status = true; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_BED_PROBE
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
||||||
|
|
||||||
void lcd_babystep_zoffset() {
|
void lcd_babystep_zoffset() {
|
||||||
if (lcd_clicked) { defer_return_to_status = false; return lcd_goto_previous_menu(); }
|
if (lcd_clicked) { defer_return_to_status = false; return lcd_goto_previous_menu(); }
|
||||||
@ -876,14 +886,14 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
lcd_implementation_drawedit(PSTR(MSG_ZPROBE_ZOFFSET), ftostr43sign(zprobe_zoffset));
|
lcd_implementation_drawedit(PSTR(MSG_ZPROBE_ZOFFSET), ftostr43sign(zprobe_zoffset));
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // !HAS_BED_PROBE
|
#else // !BABYSTEP_ZPROBE_OFFSET
|
||||||
|
|
||||||
void _lcd_babystep_z() { _lcd_babystep(Z_AXIS, PSTR(MSG_BABYSTEPPING_Z)); }
|
void _lcd_babystep_z() { _lcd_babystep(Z_AXIS, PSTR(MSG_BABYSTEPPING_Z)); }
|
||||||
void lcd_babystep_z() { lcd_goto_screen(_lcd_babystep_z); babysteps_done = 0; defer_return_to_status = true; }
|
void lcd_babystep_z() { lcd_goto_screen(_lcd_babystep_z); babysteps_done = 0; defer_return_to_status = true; }
|
||||||
|
|
||||||
#endif // HAS_BED_PROBE
|
#endif // !BABYSTEP_ZPROBE_OFFSET
|
||||||
|
|
||||||
#endif //BABYSTEPPING
|
#endif // BABYSTEPPING
|
||||||
|
|
||||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
|
|
||||||
@ -1072,10 +1082,10 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N4, &flow_percentage[3], 10, 999);
|
MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N4, &flow_percentage[3], 10, 999);
|
||||||
#if EXTRUDERS > 4
|
#if EXTRUDERS > 4
|
||||||
MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N5, &flow_percentage[4], 10, 999);
|
MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N5, &flow_percentage[4], 10, 999);
|
||||||
#endif //EXTRUDERS > 4
|
#endif // EXTRUDERS > 4
|
||||||
#endif //EXTRUDERS > 3
|
#endif // EXTRUDERS > 3
|
||||||
#endif //EXTRUDERS > 2
|
#endif // EXTRUDERS > 2
|
||||||
#endif //EXTRUDERS > 1
|
#endif // EXTRUDERS > 1
|
||||||
|
|
||||||
//
|
//
|
||||||
// Babystep X:
|
// Babystep X:
|
||||||
@ -1087,7 +1097,9 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
MENU_ITEM(submenu, MSG_BABYSTEP_X, lcd_babystep_x);
|
MENU_ITEM(submenu, MSG_BABYSTEP_X, lcd_babystep_x);
|
||||||
MENU_ITEM(submenu, MSG_BABYSTEP_Y, lcd_babystep_y);
|
MENU_ITEM(submenu, MSG_BABYSTEP_Y, lcd_babystep_y);
|
||||||
#endif
|
#endif
|
||||||
#if DISABLED(BABYSTEP_ZPROBE_OFFSET)
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
||||||
|
MENU_ITEM(submenu, MSG_ZPROBE_ZOFFSET, lcd_babystep_zoffset);
|
||||||
|
#else
|
||||||
MENU_ITEM(submenu, MSG_BABYSTEP_Z, lcd_babystep_z);
|
MENU_ITEM(submenu, MSG_BABYSTEP_Z, lcd_babystep_z);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user