rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Functions
configuration_wizard.h File Reference

Data Structures

class  ConfigurationWizard
 

Functions

void vinStrategy (bool isRunningOnBurn)
 
void vinStrategyOnSlowCallback ()
 

Function Documentation

◆ vinStrategy()

void vinStrategy ( bool  isRunningOnBurn)

Definition at line 19 of file vin_strategy.cpp.

19 {
20
21 if (isRunningOnBurn) {
22 return;
23 }
24
25 bool isVinFilled = static_cast<bool>(strlen(engineConfiguration->vinNumber));
26 int vinWizard = djb2lowerCase(DIALOG_NAME_VEHICLE_INFORMATION);
27
28 // the check with wizardPanelToShow is for not overriding an existing panel
29 // (i.e., we need to run more than one wizard with the current ecu configuration)
30 if (!isVinFilled && engineConfiguration->wizardPanelToShow == -1) {
31 efiPrintf("VinStrategy, reseting flag");
33 } else if (isVinFilled && engineConfiguration->wizardPanelToShow == vinWizard) {
35 }
36
37
38 // trigger page reset, see [tag:popular_vehicle]
39#if EFI_TUNER_STUDIO && !EFI_UNIT_TEST
41#endif // EFI_TUNER_STUDIO
42
43}
int djb2lowerCase(const char *str)
Definition efilib.cpp:135
static constexpr engine_configuration_s * engineConfiguration
void onApplyPreset()

Referenced by ConfigurationWizard::onConfigOnStartUpOrBurn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vinStrategyOnSlowCallback()

void vinStrategyOnSlowCallback ( )

Go to the source code of this file.