usability: better error handling

This commit is contained in:
rusefi 2017-02-24 19:20:33 -05:00
parent e29d1e8287
commit f7023fca23
3 changed files with 8 additions and 2 deletions

View File

@ -93,7 +93,7 @@ Engine::Engine(persistent_config_s *config) {
}
void Engine::reset() {
isEngineChartEnabled = false;
withError = isEngineChartEnabled = false;
sensorChartMode = SC_OFF;
actualLastInjection = 0;
isAlternatorControlEnabled = false;

View File

@ -266,6 +266,12 @@ public:
*/
bool isAlternatorControlEnabled;
/**
* This flag indicated a big enough problem that engine control would be
* prohibited if this flag is set to true.
*/
bool withError;
RpmCalculator rpmCalculator;
persistent_config_s *config;
engine_configuration_s *engineConfiguration;

View File

@ -1737,7 +1737,7 @@ typedef enum {
*/
CUSTOM_OBD_SKIPPED_FUEL = 6046,
CUSTOM_OBD_SCH_REUSE = 6047,
CUSTOM_OBD_48 = 6048,
CUSTOM_OBD_PIN_CONFLICT = 6048,
CUSTOM_OBD_LOW_FREQUENCY = 6049,
/**