Skip to content

Commit

Permalink
backport gear detector hack (but it works)
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Apr 28, 2023
1 parent a12b2bc commit 9068a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions firmware/rusefi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ void runRusEfiWithConfig() {
*/
initEngineController();

engine->module<GearDetector>()->onConfigurationChange(nullptr);

#if EFI_ENGINE_EMULATOR
initEngineEmulator();
#endif
Expand Down
4 changes: 2 additions & 2 deletions firmware/tunerstudio/rusefi.input
Original file line number Diff line number Diff line change
Expand Up @@ -3442,8 +3442,8 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "4th gear", gearRatio4, { totalGearsCount >= 4 }
field = "5th gear", gearRatio5, { totalGearsCount >= 5 }
field = "6th gear", gearRatio6, { totalGearsCount >= 6 }
field = "7th gear", gearRatio6, { totalGearsCount >= 7 }
field = "8th gear", gearRatio6, { totalGearsCount >= 8 }
field = "7th gear", gearRatio7, { totalGearsCount >= 7 }
field = "8th gear", gearRatio8, { totalGearsCount >= 8 }

dialog = speedSensor, "Speed sensor", xAxis
panel = speedSensorLeft
Expand Down

0 comments on commit 9068a3f

Please sign in to comment.