diff --git a/pid.c b/pid.c --- a/pid.c +++ b/pid.c @@ -18,7 +18,7 @@ int16_t pid_update(therm_settings_t* set int32_t temp = (status->temp * 10) + temp_frac; // Calculate instantaneous error - int16_t error = status->setpoint * 10 - temp; // TODO: Use fixed point fraction + int16_t error = status->setpoint * 10 - temp; // Proportional component int32_t p_term = set->val.k_p * error;