diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index b221336f82..9dbe62767a 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -70,15 +70,10 @@ public: * Lock-free multithreading: two instances, while one is being modified another one is used read-only */ FuelSchedule injectionEvents0; - FuelSchedule injectionEvents1; /** * this points at an instance we use to run the engine */ FuelSchedule *injectionEvents; - /** - * this variable is pointing at the instance which is being modified - */ - FuelSchedule *processing; #endif OutputSignalPair fuelActuators[INJECTION_PIN_COUNT]; diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 8d8708b617..53b34a61ec 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -1010,7 +1010,6 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN engine_configuration2_s::engine_configuration2_s() { injectionEvents = &injectionEvents0; - processing = &injectionEvents1; } void applyNonPersistentConfiguration(Logging * logger DECLARE_ENGINE_PARAMETER_S) { diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 60ebb734ea..702bd78fde 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -281,9 +281,9 @@ void firmwareError(obd_code_e code, const char *errorMsg, ...) { } } -static char UNUSED_RAM_SIZE[1100]; +static char UNUSED_RAM_SIZE[1200]; -static char UNUSED_CCM_SIZE[8500] CCM_OPTIONAL; +static char UNUSED_CCM_SIZE[26500] CCM_OPTIONAL; int getRusEfiVersion(void) { if (UNUSED_RAM_SIZE[0] != 0)