rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
ign_voltage_gatekeeper.h
Go to the documentation of this file.
1/*
2 * file ign_voltage_gatekeeper.h
3 */
4
6
8public:
9
10 bool isInitialized = false;
11
12 bool haveVoltage() {
13 bool withVoltage = isIgnVoltage();
14 if (!withVoltage) {
15 if (isInitialized) {
16 efiPrintf("Power loss? Would have to re-init smart chip.");
17 isInitialized = false;
18 } else {
19 efiPrintf("Smart chip needs battery voltage");
20 }
21 }
22 return withVoltage;
23 }
24};
bool isIgnVoltage()