Set AMS Error pin

This commit is contained in:
Jasper Blanckenburg 2023-04-30 00:04:00 +02:00
parent 6810790349
commit 48ae56fbdf
1 changed files with 2 additions and 0 deletions

View File

@ -106,10 +106,12 @@ TSState ts_sm_update_error() {
no_error_since = now; no_error_since = now;
} else if (now - no_error_since > NO_ERROR_TIME) { } else if (now - no_error_since > NO_ERROR_TIME) {
no_error_since = 0; no_error_since = 0;
HAL_GPIO_WritePin(AMS_NERROR_GPIO_Port, AMS_NERROR_Pin, GPIO_PIN_SET);
return TS_INACTIVE; return TS_INACTIVE;
} }
} }
HAL_GPIO_WritePin(AMS_NERROR_GPIO_Port, AMS_NERROR_Pin, GPIO_PIN_RESET);
return TS_ERROR; return TS_ERROR;
} }