Password protection makes ECU go CRITICAL #5622

This commit is contained in:
rusefillc 2023-10-19 09:46:25 -04:00
parent 4894c8e77c
commit 1537c9560b
2 changed files with 2 additions and 1 deletions

View File

@ -237,7 +237,7 @@ bool isLockedFromUser() {
int lock = engineConfiguration->tuneHidingKey;
bool isLocked = lock > 0;
if (isLocked) {
criticalError("password protected");
criticalError("Tune is password protected. Please use console to unlock tune.");
}
return isLocked;
}

View File

@ -4615,6 +4615,7 @@ dialog = tcuControls, "Transmission Settings"
field = rethrowHardFault, rethrowHardFault
field = canGpioType, canGpioType
field = "I understand ECU Locking", yesUnderstandLocking
field = "! Use console for unlocking"
field = "Tune read/write password", tuneHidingKey, { yesUnderstandLocking == 1 }
field = verboseQuad, verboseQuad
; field = useEeprom, useEeprom