simpler API?
This commit is contained in:
parent
391b0ec368
commit
ef6f3d567e
|
@ -30,7 +30,10 @@ void Pid::initPidClass(pid_s *parameters) {
|
|||
}
|
||||
|
||||
bool Pid::isSame(const pid_s *parameters) const {
|
||||
efiAssert(OBD_PCM_Processor_Fault, this->parameters != NULL, "PID::isSame invalid", false);
|
||||
if (this->parameters == NULL) {
|
||||
// this could happen on first execution during initialization
|
||||
return false;
|
||||
}
|
||||
efiAssert(OBD_PCM_Processor_Fault, parameters != NULL, "PID::isSame NULL", false);
|
||||
return this->parameters->pFactor == parameters->pFactor
|
||||
&& this->parameters->iFactor == parameters->iFactor
|
||||
|
|
Loading…
Reference in New Issue