Allow G26 with no heated bed (#13511)

This commit is contained in:
InsanityAutomation
2019-03-29 14:32:43 -04:00
committed by Scott Lahteine
parent 6d9aaca082
commit 7240e3a68f
75 changed files with 82 additions and 154 deletions

View File

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