Update comments, rename next_ping_ms, followup to #3797

This commit is contained in:
Scott Lahteine
2016-05-14 17:37:42 -07:00
parent 6d68b12e28
commit 8218558953
20 changed files with 41 additions and 40 deletions

View File

@ -7597,14 +7597,14 @@ void prepare_move() {
float feed_rate = feedrate * feedrate_multiplier / 60 / 100.0;
millis_t next_ping_ms = millis() + 200UL;
millis_t next_idle_ms = millis() + 200UL;
for (i = 1; i < segments; i++) { // Iterate (segments-1) times
thermalManager.manage_heater();
millis_t now = millis();
if (ELAPSED(now, next_ping_ms)) {
next_ping_ms = now + 200UL;
if (ELAPSED(now, next_idle_ms)) {
next_idle_ms = now + 200UL;
idle();
}
@ -7854,7 +7854,7 @@ void idle(
host_keepalive();
lcd_update();
#if ENABLED(PRINTCOUNTER)
print_job_timer.tick();
print_job_timer.tick();
#endif
}