mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-22 22:26:18 +00:00
👷 !ELAPSED => PENDING
This commit is contained in:
parent
2d609487ac
commit
793a851d10
2 changed files with 3 additions and 3 deletions
|
@ -1336,7 +1336,7 @@ void eachMomentUpdate() {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PENDING(ms, next_rts_update_ms)) {
|
if (ELAPSED(ms, next_rts_update_ms)) {
|
||||||
next_rts_update_ms = ms + DWIN_UPDATE_INTERVAL;
|
next_rts_update_ms = ms + DWIN_UPDATE_INTERVAL;
|
||||||
|
|
||||||
if ((isPrinting() != hmiFlag.printing_flag) && !hmiFlag.home_flag) {
|
if ((isPrinting() != hmiFlag.printing_flag) && !hmiFlag.home_flag) {
|
||||||
|
|
|
@ -1150,7 +1150,7 @@ volatile bool Temperature::raw_temps_ready = false;
|
||||||
if (ELAPSED(curr_time_ms, next_test_ms)) {
|
if (ELAPSED(curr_time_ms, next_test_ms)) {
|
||||||
hotend.soft_pwm_amount = (int)get_pid_output_hotend(e) >> 1;
|
hotend.soft_pwm_amount = (int)get_pid_output_hotend(e) >> 1;
|
||||||
|
|
||||||
if (ELAPSED(curr_time_ms, settle_end_ms) && !ELAPSED(curr_time_ms, test_end_ms) && TERN1(HAS_FAN, !fan0_done))
|
if (ELAPSED(curr_time_ms, settle_end_ms) && PENDING(curr_time_ms, test_end_ms) && TERN1(HAS_FAN, !fan0_done))
|
||||||
total_energy_fan0 += mpc.heater_power * hotend.soft_pwm_amount / 127 * MPC_dT + (last_temp - current_temp) * mpc.block_heat_capacity;
|
total_energy_fan0 += mpc.heater_power * hotend.soft_pwm_amount / 127 * MPC_dT + (last_temp - current_temp) * mpc.block_heat_capacity;
|
||||||
#if HAS_FAN
|
#if HAS_FAN
|
||||||
else if (ELAPSED(curr_time_ms, test_end_ms) && !fan0_done) {
|
else if (ELAPSED(curr_time_ms, test_end_ms) && !fan0_done) {
|
||||||
|
@ -1160,7 +1160,7 @@ volatile bool Temperature::raw_temps_ready = false;
|
||||||
test_end_ms = settle_end_ms + test_duration;
|
test_end_ms = settle_end_ms + test_duration;
|
||||||
fan0_done = true;
|
fan0_done = true;
|
||||||
}
|
}
|
||||||
else if (ELAPSED(curr_time_ms, settle_end_ms) && !ELAPSED(curr_time_ms, test_end_ms))
|
else if (ELAPSED(curr_time_ms, settle_end_ms) && PENDING(curr_time_ms, test_end_ms))
|
||||||
total_energy_fan255 += mpc.heater_power * hotend.soft_pwm_amount / 127 * MPC_dT + (last_temp - current_temp) * mpc.block_heat_capacity;
|
total_energy_fan255 += mpc.heater_power * hotend.soft_pwm_amount / 127 * MPC_dT + (last_temp - current_temp) * mpc.block_heat_capacity;
|
||||||
#endif
|
#endif
|
||||||
else if (ELAPSED(curr_time_ms, test_end_ms)) break;
|
else if (ELAPSED(curr_time_ms, test_end_ms)) break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue