♻️ Encapsulate PID in class (#24389)

This commit is contained in:
Scott Lahteine
2022-07-03 10:32:47 -05:00
committed by GitHub
parent 9baeeedd69
commit 54e7b933cd
13 changed files with 219 additions and 301 deletions

View File

@@ -29,10 +29,10 @@ void safe_delay(millis_t ms) {
while (ms > 50) {
ms -= 50;
delay(50);
thermalManager.manage_heater();
thermalManager.task();
}
delay(ms);
thermalManager.manage_heater(); // This keeps us safe if too many small safe_delay() calls are made
thermalManager.task(); // This keeps us safe if too many small safe_delay() calls are made
}
// A delay to provide brittle hosts time to receive bytes