better error code

This commit is contained in:
rusefi 2017-05-25 19:56:11 -04:00
parent c14cfee9ae
commit 3102d877a6
2 changed files with 2 additions and 2 deletions

View File

@ -1888,7 +1888,7 @@ typedef enum {
CUSTOM_ERR_LOGGING_NOT_READY = 6529,
CUSTOM_ERR_6530 = 6530,
CUSTOM_ERR_6531 = 6531,
CUSTOM_ERR_6532 = 6532,
CUSTOM_ERR_BUFF_INIT_ERROR = 6532,
CUSTOM_ERR_6533 = 6533,
CUSTOM_ERR_6534 = 6534,
CUSTOM_ERR_6535 = 6535,

View File

@ -117,7 +117,7 @@ static void vappendPrintfI(Logging *logging, const char *fmt, va_list arg) {
void vappendPrintf(Logging *logging, const char *fmt, va_list arg) {
efiAssertVoid(getRemainingStack(chThdGetSelfX()) > 128, "lowstck#5b");
if (!intermediateLoggingBufferInited) {
firmwareError(CUSTOM_ERR_6532, "intermediateLoggingBufferInited not inited!");
firmwareError(CUSTOM_ERR_BUFF_INIT_ERROR, "intermediateLoggingBufferInited not inited!");
return;
}
int wasLocked = lockAnyContext();