Skip to content

Commit b05af7e

Browse files
authored
Merge branch 'MPC-Code-Improvements' into MarlinFirmware#25496-Allow-MPCTEMP-tuning-to-use-the-Alternative-Method-
2 parents c59b117 + 1409754 commit b05af7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/module/temperature.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ volatile bool Temperature::raw_temps_ready = false;
10051005
for (uint8_t i = 0; i < COUNT(temp_samples) / 2; i++)
10061006
temp_samples[i] = temp_samples[i*2];
10071007
sample_count /= 2;
1008-
sample_distance *= 2;
1008+
ticks_per_sample *= 2;
10091009
}
10101010

10111011
if (sample_count == 0) t1_time = MS_TO_SEC_PRECISE(curr_time_ms - heat_start_time_ms);
@@ -1206,7 +1206,7 @@ volatile bool Temperature::raw_temps_ready = false;
12061206
#if 0
12071207
SERIAL_ECHOLNPGM("t1_time ", t1_time);
12081208
SERIAL_ECHOLNPGM("sample_count ", sample_count);
1209-
SERIAL_ECHOLNPGM("sample_distance ", sample_distance);
1209+
SERIAL_ECHOLNPGM("ticks_per_sample ", ticks_per_sample);
12101210
for (uint8_t i = 0; i < sample_count; i++)
12111211
SERIAL_ECHOLNPGM("sample ", i, " : ", temp_samples[i]);
12121212
SERIAL_ECHOLNPGM("t1 ", t1, " t2 ", t2, " t3 ", t3);

0 commit comments

Comments
 (0)