mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-02 04:47:20 +00:00
🔧 BLTOUCH_HS_MODE hex value check (#25992)
This commit is contained in:
parent
238951a966
commit
5b8b8e005b
1 changed files with 2 additions and 2 deletions
|
@ -1285,8 +1285,8 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
|
||||||
|
|
||||||
#if HAS_BLTOUCH_HS_MODE
|
#if HAS_BLTOUCH_HS_MODE
|
||||||
constexpr char hs[] = STRINGIFY(BLTOUCH_HS_MODE);
|
constexpr char hs[] = STRINGIFY(BLTOUCH_HS_MODE);
|
||||||
static_assert(!(strcmp(hs, "1") && strcmp(hs, "true") && strcmp(hs, "0") && strcmp(hs, "false")), \
|
static_assert(!(strcmp(hs, "1") && strcmp(hs, "0x1") && strcmp(hs, "true") && strcmp(hs, "0") && strcmp(hs, "0x0") && strcmp(hs, "false")), \
|
||||||
"BLTOUCH_HS_MODE must now be defined as true or false, indicating the default state.");
|
"BLTOUCH_HS_MODE must now be defined as true or false, indicating the default state.");
|
||||||
#ifdef BLTOUCH_HS_EXTRA_CLEARANCE
|
#ifdef BLTOUCH_HS_EXTRA_CLEARANCE
|
||||||
static_assert(BLTOUCH_HS_EXTRA_CLEARANCE >= 0, "BLTOUCH_HS_MODE requires BLTOUCH_HS_EXTRA_CLEARANCE >= 0.");
|
static_assert(BLTOUCH_HS_EXTRA_CLEARANCE >= 0, "BLTOUCH_HS_MODE requires BLTOUCH_HS_EXTRA_CLEARANCE >= 0.");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue