gcc11 is smart
This commit is contained in:
parent
38639e8877
commit
c376d4de90
|
@ -271,8 +271,10 @@ void firmwareError(obd_code_e code, const char *fmt, ...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto sramState = getBackupSram();
|
auto sramState = getBackupSram();
|
||||||
strncpy(sramState->ErrorString, criticalErrorMessageBuffer, efi::size(sramState->ErrorString));
|
if (sramState != nullptr) {
|
||||||
sramState->Cookie = ErrorCookie::FirmwareError;
|
strncpy(sramState->ErrorString, criticalErrorMessageBuffer, efi::size(sramState->ErrorString));
|
||||||
|
sramState->Cookie = ErrorCookie::FirmwareError;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
char errorBuffer[200];
|
char errorBuffer[200];
|
||||||
|
|
Loading…
Reference in New Issue