|
@@ -137,11 +137,7 @@ void GcodeSuite::G76() {
|
137
|
137
|
while (thermalManager.degBed() > target_bed
|
138
|
138
|
|| thermalManager.degProbe() > target_probe
|
139
|
139
|
) {
|
140
|
|
- idle(
|
141
|
|
- #if ENABLED(ADVANCED_PAUSE_FEATURE)
|
142
|
|
- true
|
143
|
|
- #endif
|
144
|
|
- );
|
|
140
|
+ idle_no_sleep();
|
145
|
141
|
const millis_t ms = millis();
|
146
|
142
|
if (ELAPSED(ms, next_temp_report)) {
|
147
|
143
|
thermalManager.print_heater_states(active_extruder);
|
|
@@ -167,11 +163,7 @@ void GcodeSuite::G76() {
|
167
|
163
|
SERIAL_ECHOLNPGM("Waiting for bed and probe to reach target temp.");
|
168
|
164
|
const millis_t probe_timeout_ms = millis() + 900UL * 1000UL;
|
169
|
165
|
while (fabs(thermalManager.degBed() - float(target_bed)) > 0.1 || thermalManager.degProbe() > target_probe) {
|
170
|
|
- idle(
|
171
|
|
- #if ENABLED(ADVANCED_PAUSE_FEATURE)
|
172
|
|
- true
|
173
|
|
- #endif
|
174
|
|
- );
|
|
166
|
+ idle_no_sleep();
|
175
|
167
|
const millis_t ms = millis();
|
176
|
168
|
if (ELAPSED(ms, next_temp_report)) {
|
177
|
169
|
thermalManager.print_heater_states(active_extruder);
|
|
@@ -191,11 +183,7 @@ void GcodeSuite::G76() {
|
191
|
183
|
do_blocking_move_to(destination);
|
192
|
184
|
SERIAL_ECHOLNPGM("Waiting for probe heating.");
|
193
|
185
|
while (thermalManager.degProbe() < target_probe) {
|
194
|
|
- idle(
|
195
|
|
- #if ENABLED(ADVANCED_PAUSE_FEATURE)
|
196
|
|
- true
|
197
|
|
- #endif
|
198
|
|
- );
|
|
186
|
+ idle_no_sleep();
|
199
|
187
|
const millis_t ms = millis();
|
200
|
188
|
if (ELAPSED(ms, next_temp_report)) {
|
201
|
189
|
thermalManager.print_heater_states(active_extruder);
|
|
@@ -262,11 +250,7 @@ void GcodeSuite::G76() {
|
262
|
250
|
while (fabs(thermalManager.degBed() - float(target_bed)) > 0.1f
|
263
|
251
|
|| thermalManager.degProbe() > target_probe
|
264
|
252
|
) {
|
265
|
|
- idle(
|
266
|
|
- #if ENABLED(ADVANCED_PAUSE_FEATURE)
|
267
|
|
- true
|
268
|
|
- #endif
|
269
|
|
- );
|
|
253
|
+ idle_no_sleep();
|
270
|
254
|
const millis_t ms = millis();
|
271
|
255
|
if (ELAPSED(ms, next_temp_report)) {
|
272
|
256
|
thermalManager.print_heater_states(active_extruder);
|
|
@@ -293,11 +277,7 @@ void GcodeSuite::G76() {
|
293
|
277
|
|
294
|
278
|
const millis_t probe_timeout_ms = millis() + 900UL * 1000UL;
|
295
|
279
|
while (thermalManager.degProbe() < target_probe) {
|
296
|
|
- idle(
|
297
|
|
- #if ENABLED(ADVANCED_PAUSE_FEATURE)
|
298
|
|
- true
|
299
|
|
- #endif
|
300
|
|
- );
|
|
280
|
+ idle_no_sleep();
|
301
|
281
|
const millis_t ms = millis();
|
302
|
282
|
if (ELAPSED(ms, next_temp_report)) {
|
303
|
283
|
thermalManager.print_heater_states(active_extruder);
|