rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
vin_strategy.cpp
Go to the documentation of this file.
1/*
2 * @file vin_strategy.cpp
3 *
4 * @date: nov 11, 2025
5 * @author FDSoftware
6 */
7#include <cstring>
8
9#include "pch.h"
10#include "../configuration_wizard.h"
11
12#if EFI_TUNER_STUDIO
13#include "tunerstudio.h"
14#endif
15
16/*
17 * here we need to track if the wizard is active (vin is empty) and trigger TS page refresh
18 */
20 bool isVinFilled = static_cast<bool>(strlen(engineConfiguration->vinNumber));
21
22 bool vinStateChanged = isVinFilled == engineConfiguration->vinIsEmpty;
23
24 if (vinStateChanged) {
25 engineConfiguration->vinIsEmpty = !isVinFilled;
26 // trigger page reset, see [tag:popular_vehicle]
27#if EFI_TUNER_STUDIO && !EFI_UNIT_TEST
29#endif // EFI_TUNER_STUDIO
30 }
31
32}
static constexpr engine_configuration_s * engineConfiguration
void onApplyPreset()
void vinStrategy()