From 7034de39c5771a1a6770396cc4031032072e5858 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 22 Dec 2020 22:35:29 -0500 Subject: [PATCH] David says it would be better like this --- firmware/controllers/simple_tcu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/simple_tcu.cpp b/firmware/controllers/simple_tcu.cpp index 86650df0b9..4342cff3e0 100644 --- a/firmware/controllers/simple_tcu.cpp +++ b/firmware/controllers/simple_tcu.cpp @@ -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(gear) + 1]); + enginePins.tcuSolenoids[i].setValue(config->tcuSolenoidTable[static_cast(gear) + 1][i]); #endif } setCurrentGear(gear);