mirror of
https://github.com/Ralim/IronOS.git
synced 2025-07-24 04:40:34 +02:00
Update PIDThread.cpp
Should use osDelay to be scheduler safe
This commit is contained in:
@@ -40,7 +40,7 @@ void startPIDTask(void const *argument __unused) {
|
||||
uint32_t PIDTempTarget = 0;
|
||||
// Pre-seed the adc filters
|
||||
for (int i = 0; i < 128; i++) {
|
||||
vTaskDelay(5);
|
||||
osDelay(5);
|
||||
TipThermoModel::getTipInC(true);
|
||||
getInputVoltageX10(getSettingValue(SettingsOptions::VoltageDiv), 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user