From ceeb819fc8e8054b27434a6ab82401e722377510 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 19 Mar 2023 03:18:38 -0400 Subject: [PATCH] Indicator for injector HW issues #5189 --- firmware/config/boards/microrusefi/prepend.txt | 1 + firmware/controllers/algo/fuel/fuel_computer.txt | 1 + firmware/hw_layer/drivers/gpio/core.cpp | 3 +-- firmware/integration/rusefi_config.txt | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/config/boards/microrusefi/prepend.txt b/firmware/config/boards/microrusefi/prepend.txt index 24d97473ee..ab6d15e324 100644 --- a/firmware/config/boards/microrusefi/prepend.txt +++ b/firmware/config/boards/microrusefi/prepend.txt @@ -28,6 +28,7 @@ #define ts_show_vbatt false #define ts_show_clt_iat_pullup false #define ts_show_tps_sent true +#define ts_show_inj_diag true #define show_test_presets false #define show_Frankenso_presets false diff --git a/firmware/controllers/algo/fuel/fuel_computer.txt b/firmware/controllers/algo/fuel/fuel_computer.txt index 5c7f0ac886..b086503c19 100644 --- a/firmware/controllers/algo/fuel/fuel_computer.txt +++ b/firmware/controllers/algo/fuel/fuel_computer.txt @@ -26,6 +26,7 @@ running_fuel_s running float sdTcharge_coff float sdAirMassInOneCylinder;SD cylinder mass\nSpeed-density logic: calculated air mass in one cylinder, in grams bit sdIsTChargeAirModel +bit injectorHwIssue end_struct \ No newline at end of file diff --git a/firmware/hw_layer/drivers/gpio/core.cpp b/firmware/hw_layer/drivers/gpio/core.cpp index b487132a5b..a632863f81 100644 --- a/firmware/hw_layer/drivers/gpio/core.cpp +++ b/firmware/hw_layer/drivers/gpio/core.cpp @@ -304,8 +304,7 @@ int gpiochips_readPad(brain_pin_e pin) * else return brain_pin_diag_e from gpiochip driver; */ -brain_pin_diag_e gpiochips_getDiag(brain_pin_e pin) -{ +brain_pin_diag_e gpiochips_getDiag(brain_pin_e pin) { gpiochip *chip = gpiochip_find(pin); if (!chip) diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 31d019ca59..1df1788ebb 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -2180,6 +2180,7 @@ end_struct ! some board files override this value using prepend file #define ts_show_hip9011 false #define ts_show_tps_sent false +#define ts_show_inj_diag false #define ts_show_vr_threshold_all true #define ts_show_vr_threshold_2 true #define ts_show_main_relay true