|
|
@ -569,13 +569,15 @@ void GcodeSuite::G26() {
|
|
|
|
bool g26_continue_with_closest = parser.boolval('C'),
|
|
|
|
bool g26_continue_with_closest = parser.boolval('C'),
|
|
|
|
g26_keep_heaters_on = parser.boolval('K');
|
|
|
|
g26_keep_heaters_on = parser.boolval('K');
|
|
|
|
|
|
|
|
|
|
|
|
if (parser.seenval('B')) {
|
|
|
|
#if HAS_HEATED_BED
|
|
|
|
g26_bed_temp = parser.value_celsius();
|
|
|
|
if (parser.seenval('B')) {
|
|
|
|
if (g26_bed_temp && !WITHIN(g26_bed_temp, 40, (BED_MAXTEMP - 10))) {
|
|
|
|
g26_bed_temp = parser.value_celsius();
|
|
|
|
SERIAL_ECHOLNPAIR("?Specified bed temperature not plausible (40-", int(BED_MAXTEMP - 10), "C).");
|
|
|
|
if (g26_bed_temp && !WITHIN(g26_bed_temp, 40, (BED_MAXTEMP - 10))) {
|
|
|
|
return;
|
|
|
|
SERIAL_ECHOLNPAIR("?Specified bed temperature not plausible (40-", int(BED_MAXTEMP - 10), "C).");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
if (parser.seenval('L')) {
|
|
|
|
if (parser.seenval('L')) {
|
|
|
|
g26_layer_height = parser.value_linear_units();
|
|
|
|
g26_layer_height = parser.value_linear_units();
|
|
|
|