|
@@ -256,7 +256,7 @@ void GcodeSuite::G76() {
|
256
|
256
|
|
257
|
257
|
// Initialize temperatures
|
258
|
258
|
uint16_t target_bed = temp_comp.probe_calib_bed_temp,
|
259
|
|
- target_probe = temp_comp.cali_info_init[TSI_BED].start_temp;
|
|
259
|
+ target_probe = temp_comp.cali_info_init[TSI_PROBE].start_temp;
|
260
|
260
|
thermalManager.setTargetBed(target_bed);
|
261
|
261
|
SERIAL_ECHOLNPGM("Waiting for bed and probe temperature.");
|
262
|
262
|
while (fabs(thermalManager.degBed() - float(target_bed)) > 0.1f
|
|
@@ -332,13 +332,13 @@ void GcodeSuite::G76() {
|
332
|
332
|
else
|
333
|
333
|
SERIAL_ECHOLNPAIR_F("Measured: ", measured_z);
|
334
|
334
|
|
335
|
|
- if (target_probe == temp_comp.cali_info_init[TSI_BED].start_temp)
|
|
335
|
+ if (target_probe == temp_comp.cali_info_init[TSI_PROBE].start_temp)
|
336
|
336
|
temp_comp.prepare_new_calibration(measured_z);
|
337
|
337
|
else
|
338
|
338
|
temp_comp.push_back_new_measurement(TSI_PROBE, measured_z);
|
339
|
339
|
|
340
|
|
- target_probe += temp_comp.cali_info_init[TSI_BED].temp_res;
|
341
|
|
- if (target_probe > temp_comp.cali_info_init[TSI_BED].end_temp) break;
|
|
340
|
+ target_probe += temp_comp.cali_info_init[TSI_PROBE].temp_res;
|
|
341
|
+ if (target_probe > temp_comp.cali_info_init[TSI_PROBE].end_temp) break;
|
342
|
342
|
}
|
343
|
343
|
|
344
|
344
|
SERIAL_ECHOLNPAIR("Retrieved measurements: ", temp_comp.get_index());
|