HAL: Add additional error messages to HAL_GetErrorMessage (#965)

This commit is contained in:
Dustin Spicuzza
2018-12-01 03:06:30 -05:00
committed by Peter Johnson
parent 3b33abfc7b
commit 0d0492bfcc
2 changed files with 9 additions and 0 deletions

View File

@@ -207,6 +207,10 @@ const char* HAL_GetErrorMessage(int32_t code) {
return HAL_SERIAL_PORT_ERROR_MESSAGE;
case HAL_CAN_TIMEOUT:
return HAL_CAN_TIMEOUT_MESSAGE;
case ERR_FRCSystem_NetCommNotResponding:
return ERR_FRCSystem_NetCommNotResponding_MESSAGE;
case ERR_FRCSystem_NoDSConnection:
return ERR_FRCSystem_NoDSConnection_MESSAGE;
default:
return "Unknown error status";
}