Skip to content

Commit 9068a3f

Browse files
committed
backport gear detector hack (but it works)
1 parent a12b2bc commit 9068a3f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

firmware/rusefi.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ void runRusEfiWithConfig() {
280280
*/
281281
initEngineController();
282282

283+
engine->module<GearDetector>()->onConfigurationChange(nullptr);
284+
283285
#if EFI_ENGINE_EMULATOR
284286
initEngineEmulator();
285287
#endif

firmware/tunerstudio/rusefi.input

+2-2
Original file line numberDiff line numberDiff line change
@@ -3442,8 +3442,8 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
34423442
field = "4th gear", gearRatio4, { totalGearsCount >= 4 }
34433443
field = "5th gear", gearRatio5, { totalGearsCount >= 5 }
34443444
field = "6th gear", gearRatio6, { totalGearsCount >= 6 }
3445-
field = "7th gear", gearRatio6, { totalGearsCount >= 7 }
3446-
field = "8th gear", gearRatio6, { totalGearsCount >= 8 }
3445+
field = "7th gear", gearRatio7, { totalGearsCount >= 7 }
3446+
field = "8th gear", gearRatio8, { totalGearsCount >= 8 }
34473447

34483448
dialog = speedSensor, "Speed sensor", xAxis
34493449
panel = speedSensorLeft

0 commit comments

Comments
 (0)