MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / segment_idle

Function segment_idle

Marlin/src/module/motion.cpp:1424–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422#endif // !HAS_SOFTWARE_ENDSTOPS
1423
1424FORCE_INLINE void segment_idle(millis_t &next_idle_ms) {
1425 const millis_t ms = millis();
1426 if (ELAPSED(ms, next_idle_ms)) {
1427 next_idle_ms = ms + 200UL;
1428 return idle();
1429 }
1430 thermalManager.task(); // Returns immediately on most calls
1431}
1432
1433/**
1434 * Get distance from displacements along axes and, if required, update move type.

Callers 2

Calls 3

idleFunction · 0.85
millisFunction · 0.50
taskMethod · 0.45

Tested by

no test coverage detected