Fix non-BLT build
This commit is contained in:
@@ -830,6 +830,8 @@ void AnycubicTouchscreenClass::HandleSpecialMenu()
|
||||
SERIAL_ECHOLNPGM("Special Menu: Exit Flow Menu");
|
||||
FlowMenu = false;
|
||||
}
|
||||
|
||||
#if ENABLED(KNUTWURST_BLTOUCH)
|
||||
else if ((strcasestr_P(currentTouchscreenSelection, PSTR(SM_BLTZMENU_L)) != NULL)
|
||||
|| (strcasestr_P(currentTouchscreenSelection, PSTR(SM_BLTZMENU_S)) != NULL))
|
||||
{
|
||||
@@ -841,20 +843,12 @@ void AnycubicTouchscreenClass::HandleSpecialMenu()
|
||||
{
|
||||
SERIAL_ECHOLNPGM("Special Menu: Offset UP");
|
||||
probe.offset.z += 0.01F;
|
||||
|
||||
//char value[30];
|
||||
//sprintf_P(value, PSTR("M851 Z%i"), float(probe.offset.z));
|
||||
//queue.enqueue_one_now(value);
|
||||
}
|
||||
else if ((strcasestr_P(currentTouchscreenSelection, PSTR(SM_BLTZ_DN_L)) != NULL)
|
||||
|| (strcasestr_P(currentTouchscreenSelection, PSTR(SM_BLTZ_DN_S)) != NULL))
|
||||
{
|
||||
SERIAL_ECHOLNPGM("Special Menu: Offset Down");
|
||||
probe.offset.z -= 0.01F;
|
||||
|
||||
//char value[30];
|
||||
//sprintf_P(value, PSTR("M851 Z%i"), float(probe.offset.z));
|
||||
//queue.enqueue_one_now(value);
|
||||
}
|
||||
else if ((strcasestr_P(currentTouchscreenSelection, PSTR(SM_BLTZ_EXIT_L)) != NULL)
|
||||
|| (strcasestr_P(currentTouchscreenSelection, PSTR(SM_BLTZ_EXIT_S)) != NULL))
|
||||
@@ -865,6 +859,7 @@ void AnycubicTouchscreenClass::HandleSpecialMenu()
|
||||
buzzer.tone(210, 1661);
|
||||
BLTouchMenu = false;
|
||||
}
|
||||
#endif
|
||||
else if ((strcasestr_P(currentTouchscreenSelection, PSTR(SM_EZLVL_MENU_L)) != NULL)
|
||||
|| (strcasestr_P(currentTouchscreenSelection, PSTR(SM_EZLVL_MENU_S)) != NULL))
|
||||
{
|
||||
|
Reference in New Issue
Block a user