rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
engine2.cpp File Reference

Functions

bool isLockedFromUser ()
 
void unlockEcu (int password)
 

Function Documentation

◆ isLockedFromUser()

bool isLockedFromUser ( )

Definition at line 310 of file engine2.cpp.

310 {
312 bool isLocked = lock > 0;
313 if (isLocked) {
314 criticalError("Tune is password protected. Please use console to unlock tune.");
315 }
316 return isLocked;
317}
static constexpr engine_configuration_s * engineConfiguration
static bool isLocked
Definition flash_int.cpp:22

Referenced by TunerStudio::handlePageReadCommand(), and TunerStudio::handleWriteChunkCommand().

Here is the caller graph for this function:

◆ unlockEcu()

void unlockEcu ( int  password)

Definition at line 319 of file engine2.cpp.

319 {
320 if (password != engineConfiguration->tuneHidingKey) {
321 efiPrintf("Nope rebooting...");
322#if EFI_PROD_CODE
324#endif // EFI_PROD_CODE
325 } else {
326 efiPrintf("Unlocked! Burning...");
328 requestBurn();
329 }
330}
void scheduleReboot()
Definition rusefi.cpp:158
void requestBurn()

Referenced by initSettings().

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

Go to the source code of this file.