This commit is contained in:
rusefillc 2021-01-31 13:30:14 -05:00
parent 5e50b542a8
commit 6ffddb8e3a
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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)