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

@ -118,14 +118,14 @@ void cubic_b_spline(const float position[NUM_AXIS], const float target[NUM_AXIS]
bez_target[Y_AXIS] = position[Y_AXIS];
float step = MAX_STEP;
millis_t next_ping_ms = millis() + 200UL;
millis_t next_idle_ms = millis() + 200UL;
while (t < 1.0) {
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();
}