diff --git a/Marlin/utility.cpp b/Marlin/utility.cpp index 0f5919355..63ee94bd0 100644 --- a/Marlin/utility.cpp +++ b/Marlin/utility.cpp @@ -47,7 +47,7 @@ void safe_delay(millis_t ms) { #endif // EEPROM_SETTINGS -#if ENABLED(ULTRA_LCD) +#if ENABLED(ULTRA_LCD) || (ENABLED(DEBUG_LEVELING_FEATURE) && (ENABLED(MESH_BED_LEVELING) || (HAS_ABL && !ABL_PLANAR))) char conv[8] = { 0 }; @@ -254,4 +254,4 @@ void safe_delay(millis_t ms) { return &conv[1]; } -#endif // ULTRA_LCD +#endif // ULTRA_LCD || (DEBUG_LEVELING_FEATURE && (MESH_BED_LEVELING || (HAS_ABL && !ABL_PLANAR))) diff --git a/Marlin/utility.h b/Marlin/utility.h index c3cc9c8dd..7837222bb 100644 --- a/Marlin/utility.h +++ b/Marlin/utility.h @@ -29,7 +29,7 @@ void safe_delay(millis_t ms); void crc16(uint16_t *crc, const void * const data, uint16_t cnt); #endif -#if ENABLED(ULTRA_LCD) || ENABLED(DEBUG_LEVELING_FEATURE) +#if ENABLED(ULTRA_LCD) || (ENABLED(DEBUG_LEVELING_FEATURE) && (ENABLED(MESH_BED_LEVELING) || (HAS_ABL && !ABL_PLANAR))) // Convert uint8_t to string with 123 format char* i8tostr3(const uint8_t x); @@ -81,6 +81,6 @@ void safe_delay(millis_t ms); FORCE_INLINE char *ftostr4sign(const float &x) { return itostr4sign((int)x); } #endif -#endif // ULTRA_LCD +#endif // ULTRA_LCD || (DEBUG_LEVELING_FEATURE && (MESH_BED_LEVELING || (HAS_ABL && !ABL_PLANAR))) #endif // __UTILITY_H__