Send error codes to interface chip
This commit is contained in:
@ -351,10 +351,9 @@ static void MX_GPIO_Init(void) {
|
||||
}
|
||||
|
||||
/* USER CODE BEGIN 4 */
|
||||
void AMS_Error_Handler(AMSErrorHandle errorinfo) {
|
||||
void AMS_Error_Handler(AMSErrorHandle* errorinfo) {
|
||||
while (1) {
|
||||
set_SPI_errorInfo(&errorinfo);
|
||||
errorinfo.errorarg[7] = 1;
|
||||
set_SPI_errorInfo(errorinfo);
|
||||
setAMSError();
|
||||
airstates.targetTSState = TS_ERROR;
|
||||
Update_AIR_State(&airstates);
|
||||
|
||||
Reference in New Issue
Block a user