David says it would be better like this
This commit is contained in:
parent
55ebe223a7
commit
b806065939
|
@ -13,7 +13,7 @@ void SimpleTransmissionController::init() {
|
|||
void SimpleTransmissionController::update(gear_e gear) {
|
||||
for (size_t i = 0; i < efi::size(CONFIG(tcu_solenoid)); i++) {
|
||||
#if ! EFI_UNIT_TEST
|
||||
enginePins.tcuSolenoids[i].setValue(config->tcuSolenoidTable[i][static_cast<int>(gear) + 1]);
|
||||
enginePins.tcuSolenoids[i].setValue(config->tcuSolenoidTable[static_cast<int>(gear) + 1][i]);
|
||||
#endif
|
||||
}
|
||||
setCurrentGear(gear);
|
||||
|
|
Loading…
Reference in New Issue