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 bool isVinFilled = static_cast<bool>(strlen(engineConfiguration->vinNumber));
21
22 bool vinStateChanged = isVinFilled == engineConfiguration->vinIsEmpty;
23
24 if (vinStateChanged && !isRunningOnBurn) {
25 efiPrintf("VinStrategy, reseting flag");
26 engineConfiguration->vinIsEmpty = !isVinFilled;
27
28 if (!isVinFilled) {
29 engineConfiguration->wizardPanelToShow = djb2lowerCase(DIALOG_NAME_VEHICLE_INFORMATION);
30 } else {
32 }
33
34
35 // trigger page reset, see [tag:popular_vehicle]
36#if EFI_TUNER_STUDIO && !EFI_UNIT_TEST
38#endif // EFI_TUNER_STUDIO
39 }
40
41}
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.