Fixed pre-commit script issues.

This commit is contained in:
EmergReanimator 2022-02-13 08:46:24 +01:00
parent 69aa0b4edb
commit 4e0bd4a27f

View File

@ -337,8 +337,7 @@ size_t common_hal_busio_uart_write(busio_uart_obj_t *self, const uint8_t *data,
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
Status = HAL_UART_GetState(&self->handle); Status = HAL_UART_GetState(&self->handle);
} }
} } else {
else {
mp_raise_ValueError(translate("UART write error")); mp_raise_ValueError(translate("UART write error"));
} }
@ -363,13 +362,13 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *handle) {
} }
} }
#if (1) #if (1)
// TODO: Implement error handling here // TODO: Implement error handling here
#else #else
while (HAL_BUSY == errflag) { while (HAL_BUSY == errflag) {
errflag = HAL_UART_Receive_IT(handle, &context->rx_char, 1); errflag = HAL_UART_Receive_IT(handle, &context->rx_char, 1);
} }
#endif #endif
return; return;
} }