From e2433b0fe4c72e0f21a5b7191f49836202f861dc Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 3 Sep 2022 08:57:55 -0700 Subject: [PATCH] fix critical error readout (#4521) * this indicator must be EXACTLY like this * formatting tweaks while we're here --- firmware/tunerstudio/rusefi.input | 34 +++++++++++++++++-------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 16287cc7ee..011f6406eb 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -1339,40 +1339,44 @@ gaugeCategory = GPPWM Outputs indicator = { isWarnNow }, "No warnings", "Warning", white, black, yellow, black indicator = { checkEngine }, "No Check Engine", "Check Engine", white, black, red, black indicator = { isTriggerError}, "Trigger OK", "Trigger ERR", white, black, red, black - indicator = { isIgnitionEnabledIndicator }, "Ignition OFF", "Ignition ON", yellow, black, white, black - indicator = { isInjectionEnabledIndicator }, "Injection OFF", "Injection ON", yellow, black, white, black + indicator = { isIgnitionEnabledIndicator }, "Ignition cut", "Ignition OK", yellow, black, white, black + indicator = { isInjectionEnabledIndicator }, "Injection cut", "Injection OK", yellow, black, white, black ; this is required so that the "config error" feature works in TS - ; don't change this line - TS is looking for an indicator with particular text/styling + ; DO NOT CHANGE THIS LINE - TS is looking for an indicator with particular text/styling ; you don't even have to show it by default - indicator = { hasCriticalError }, "No config error", "Config error", white, black, red, black + ; DO NOT CHANGE THIS LINE + ; DO NOT CHANGE THIS LINE + indicator = { hasCriticalError }, "Config Error", "Config Error", white, black, red, black + ; DO NOT CHANGE THIS LINE + ; DO NOT CHANGE THIS LINE ; minor info - indicator = { isFanOn }, "Fan OFF", "Fan ON", white, black, green, black - indicator = { isFan2On }, "Fan 2 OFF", "Fan 2 ON", white, black, green, black - indicator = { isMainRelayOn }, "Main Relay Off", "Main Relay ON", white, black, green, black + indicator = { isFanOn }, "Fan off", "Fan on", white, black, green, black + indicator = { isFan2On }, "Fan 2 off", "Fan 2 on", white, black, green, black + indicator = { isMainRelayOn }, "Main relay off", "Main relay on", white, black, green, black indicator = { fuelCutReason == 11 }, "No cleanup", "Cyl cleanup", white, black, yellow, black ; Line 2 ; = expression, off-label, on-label, off-bg, off-fg, on-bg, on-fg - indicator = { isFuelPumpOn }, "Fuel Pump Off", "Fuel Pump On", white, black, green, black + indicator = { isFuelPumpOn }, "Fuel pump off", "Fuel pump on", white, black, green, black indicator = { clutchUpState }, "No clutch Up", "Clutch Up", white, black, red, black - indicator = { clutchDownState }, "No clutch Down", "Clutch Down", white, black, yellow, black + indicator = { clutchDownState }, "No clutch down", "Clutch down", white, black, yellow, black indicator = { brakePedalState }, "No braking", "Brake down", white, black, red, black indicator = { acButtonState }, "AC Switch off", "AC Switch on", white, black, blue, white indicator = { m_acEnabled }, "AC Relay off", "AC Relay on", white, black, blue, white indicator = { isIdleClosedLoop }, "Not idling", "Idling", white, black, green, black indicator = { isIdleCoasting }, "Not coasting", "Coasting", white, black, green, black - indicator = { dfcoActive }, "Not decel cut", "Decel cut", white, black, yellow, black + indicator = { dfcoActive }, "Not decel fuel cut", "Decel fuel cut", white, black, yellow, black indicator = { tpsAccelActive }, "No TPS accel", "TPS accel active", white, black, yellow, black ; error codes - indicator = { isTpsError }, "TPS Ok", "TPS error", white, black, red, black + indicator = { isTpsError }, "TPS OK", "TPS error", white, black, red, black ; Line 3 ; = expression, off-label, on-label, off-bg, off-fg, on-bg, on-fg - indicator = { isTps2Error }, "TPS 2 Ok", "TPS 2 error", white, black, red, black - indicator = { isPedalError }, "Pedal Ok", "Pedal error", white, black, red, black - indicator = { isCltError }, "CLT Ok", "CLT error", white, black, red, black - indicator = { isIatError }, "IAT Ok", "IAT error", white, black, red, black + indicator = { isTps2Error }, "TPS 2 OK", "TPS 2 error", white, black, red, black + indicator = { isPedalError }, "Pedal OK", "Pedal error", white, black, red, black + indicator = { isCltError }, "CLT OK", "CLT error", white, black, red, black + indicator = { isIatError }, "IAT OK", "IAT error", white, black, red, black ; not implemented ; indicator = { ind_map_error}, "map", "map error", white, black, red, black indicator = { sd_present }, "No SD card", "SD card present", white, black, green, black