diff --git a/firmware/controllers/algo/engine_parts.h b/firmware/controllers/algo/engine_parts.h index 5c6d20a154..581b08a839 100644 --- a/firmware/controllers/algo/engine_parts.h +++ b/firmware/controllers/algo/engine_parts.h @@ -36,6 +36,8 @@ public: Accelerometer accelerometer; + // todo: remove this variable, replace with Sensor::get(SensorType::vbatt).value_or(VBAT_FALLBACK_VALUE) + // todo: https://github.com/rusefi/rusefi/issues/2260 float vBatt = 0; /** * that's fuel in tank - just a gauge diff --git a/firmware/controllers/system_fsio.txt b/firmware/controllers/system_fsio.txt index 706876d0ca..5e961caa11 100644 --- a/firmware/controllers/system_fsio.txt +++ b/firmware/controllers/system_fsio.txt @@ -28,6 +28,7 @@ COMBINED_WARNING_LIGHT=(rpm > fsio_setting(2)) | ((coolant > fsio_setting(3)) | # todo: make '5' a setting? # todo: always have 'EFI_MAIN_RELAY_CONTROL'? # at the moment microRusEFI would not be happy with vbatt > 5 since microRusEFI senses main relay output +# todo https://github.com/rusefi/rusefi/issues/2258 #MAIN_RELAY_LOGIC=(time_since_boot >= 0 & time_since_boot < 2) | (vbatt > 5) | in_shutdown MAIN_RELAY_LOGIC=(!in_mr_bench) & ((vbatt > 5) | in_shutdown)