diff --git a/firmware/controllers/algo/dynoview.cpp b/firmware/controllers/algo/dynoview.cpp index 16d2633931..3d78ab24bc 100644 --- a/firmware/controllers/algo/dynoview.cpp +++ b/firmware/controllers/algo/dynoview.cpp @@ -145,10 +145,11 @@ int getDynoviewPower(DECLARE_ENGINE_PARAMETER_SIGNATURE) { * Only updates if we have Vss from input pin. */ void updateDynoView(DECLARE_ENGINE_PARAMETER_SIGNATURE) { - if (isBrainPinValid(CONFIG(vehicleSpeedSensorInputPin)) && - (!CONFIG(enableCanVss))) { - dynoInstance.update(ICU); - } + if (isBrainPinValid(CONFIG(vehicleSpeedSensorInputPin)) && + (!CONFIG(enableCanVss))) { + INJECT_ENGINE_REFERENCE(&dynoInstance); + dynoInstance.update(ICU); + } } /** diff --git a/unit_tests/efifeatures.h b/unit_tests/efifeatures.h index 1cba07c663..c05fd434d4 100644 --- a/unit_tests/efifeatures.h +++ b/unit_tests/efifeatures.h @@ -13,6 +13,8 @@ #define EFI_EMULATE_POSITION_SENSORS TRUE +#define EFI_VEHICLE_SPEED TRUE + #define EFI_ENGINE_SNIFFER TRUE #define EFI_PRINTF_FUEL_DETAILS TRUE