unit test vss segfault fix (#3090)

* enable feature

* dynoview

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2021-08-01 12:05:52 -07:00 committed by GitHub
parent 02e6b4aa7d
commit e0eff6c66a
2 changed files with 7 additions and 4 deletions

View File

@ -147,6 +147,7 @@ int getDynoviewPower(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
void updateDynoView(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void updateDynoView(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
if (isBrainPinValid(CONFIG(vehicleSpeedSensorInputPin)) && if (isBrainPinValid(CONFIG(vehicleSpeedSensorInputPin)) &&
(!CONFIG(enableCanVss))) { (!CONFIG(enableCanVss))) {
INJECT_ENGINE_REFERENCE(&dynoInstance);
dynoInstance.update(ICU); dynoInstance.update(ICU);
} }
} }

View File

@ -13,6 +13,8 @@
#define EFI_EMULATE_POSITION_SENSORS TRUE #define EFI_EMULATE_POSITION_SENSORS TRUE
#define EFI_VEHICLE_SPEED TRUE
#define EFI_ENGINE_SNIFFER TRUE #define EFI_ENGINE_SNIFFER TRUE
#define EFI_PRINTF_FUEL_DETAILS TRUE #define EFI_PRINTF_FUEL_DETAILS TRUE