Fixed pre-commit script issues.

This commit is contained in:
EmergReanimator 2022-02-13 08:46:24 +01:00
parent 69aa0b4edb
commit 4e0bd4a27f
1 changed files with 6 additions and 7 deletions

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;
Status = HAL_UART_GetState(&self->handle);
}
}
else {
} else {
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
#else
#else
while (HAL_BUSY == errflag) {
errflag = HAL_UART_Receive_IT(handle, &context->rx_char, 1);
}
#endif
#endif
return;
}