check if trans controller was initialized
This commit is contained in:
parent
f458e057f8
commit
201e3d27d7
|
@ -28,9 +28,14 @@ void GearControllerBase::update() {
|
|||
} else if (transmissionController->getMode() != engineConfiguration->transmissionControllerMode) {
|
||||
initTransmissionController();
|
||||
}
|
||||
// We are responsible for telling the transmission controller
|
||||
// what gear we want.
|
||||
transmissionController->update(getDesiredGear());
|
||||
|
||||
// check if it was init'd (it wouldn't be if set to NONE)
|
||||
if (transmissionController != NULL) {
|
||||
// We are responsible for telling the transmission controller
|
||||
// what gear we want.
|
||||
transmissionController->update(getDesiredGear());
|
||||
}
|
||||
|
||||
// Post state to TS
|
||||
postState();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue