|
@ -1027,12 +1027,12 @@ |
|
|
|
|
|
|
|
|
static uint8_t ubl_state_at_invocation = 0; |
|
|
static uint8_t ubl_state_at_invocation = 0; |
|
|
|
|
|
|
|
|
#ifdef UBL_DEVEL_DEBUGGING |
|
|
#if ENABLED(UBL_DEVEL_DEBUGGING) |
|
|
static uint8_t ubl_state_recursion_chk = 0; |
|
|
static uint8_t ubl_state_recursion_chk = 0; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
void unified_bed_leveling::save_ubl_active_state_and_disable() { |
|
|
void unified_bed_leveling::save_ubl_active_state_and_disable() { |
|
|
#ifdef UBL_DEVEL_DEBUGGING |
|
|
#if ENABLED(UBL_DEVEL_DEBUGGING) |
|
|
ubl_state_recursion_chk++; |
|
|
ubl_state_recursion_chk++; |
|
|
if (ubl_state_recursion_chk != 1) { |
|
|
if (ubl_state_recursion_chk != 1) { |
|
|
SERIAL_ECHOLNPGM("save_ubl_active_state_and_disabled() called multiple times in a row."); |
|
|
SERIAL_ECHOLNPGM("save_ubl_active_state_and_disabled() called multiple times in a row."); |
|
@ -1048,7 +1048,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void unified_bed_leveling::restore_ubl_active_state_and_leave() { |
|
|
void unified_bed_leveling::restore_ubl_active_state_and_leave() { |
|
|
#ifdef UBL_DEVEL_DEBUGGING |
|
|
#if ENABLED(UBL_DEVEL_DEBUGGING) |
|
|
if (--ubl_state_recursion_chk) { |
|
|
if (--ubl_state_recursion_chk) { |
|
|
SERIAL_ECHOLNPGM("restore_ubl_active_state_and_leave() called too many times."); |
|
|
SERIAL_ECHOLNPGM("restore_ubl_active_state_and_leave() called too many times."); |
|
|
#if ENABLED(NEWPANEL) |
|
|
#if ENABLED(NEWPANEL) |
|
@ -1132,7 +1132,7 @@ |
|
|
SERIAL_EOL(); |
|
|
SERIAL_EOL(); |
|
|
safe_delay(50); |
|
|
safe_delay(50); |
|
|
|
|
|
|
|
|
#ifdef UBL_DEVEL_DEBUGGING |
|
|
#if ENABLED(UBL_DEVEL_DEBUGGING) |
|
|
SERIAL_PROTOCOLLNPAIR("ubl_state_at_invocation :", ubl_state_at_invocation); |
|
|
SERIAL_PROTOCOLLNPAIR("ubl_state_at_invocation :", ubl_state_at_invocation); |
|
|
SERIAL_EOL(); |
|
|
SERIAL_EOL(); |
|
|
SERIAL_PROTOCOLLNPAIR("ubl_state_recursion_chk :", ubl_state_recursion_chk); |
|
|
SERIAL_PROTOCOLLNPAIR("ubl_state_recursion_chk :", ubl_state_recursion_chk); |
|
|