Browse Source

🚸 Tweaks to UBL G29 Q

vanilla_fb_2.0.x
Scott Lahteine 3 years ago
committed by Scott Lahteine
parent
commit
12f8168d1e
  1. 7
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

7
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

@ -346,13 +346,14 @@ void unified_bed_leveling::G29() {
if (parser.seen('Q')) { if (parser.seen('Q')) {
const int16_t test_pattern = parser.has_value() ? parser.value_int() : -99; const int16_t test_pattern = parser.has_value() ? parser.value_int() : -99;
if (!WITHIN(test_pattern, -1, 2)) { if (!WITHIN(test_pattern, TERN0(UBL_DEVEL_DEBUGGING, -1), 2)) {
SERIAL_ECHOLNPGM("Invalid test_pattern value. (-1 to 2)\n"); SERIAL_ECHOLNPGM("?Invalid (Q) test pattern. (" TERN(UBL_DEVEL_DEBUGGING, "-1", "0") " to 2)\n");
return; return;
} }
SERIAL_ECHOLNPGM("Loading test_pattern values.\n"); SERIAL_ECHOLNPGM("Applying test pattern.\n");
switch (test_pattern) { switch (test_pattern) {
default:
case -1: TERN_(UBL_DEVEL_DEBUGGING, g29_eeprom_dump()); break; case -1: TERN_(UBL_DEVEL_DEBUGGING, g29_eeprom_dump()); break;
case 0: case 0:

Loading…
Cancel
Save