We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3bd2ec commit 1dd288aCopy full SHA for 1dd288a
1 file changed
aimdb-embassy-adapter/src/error.rs
@@ -234,9 +234,9 @@ mod tests {
234
235
#[test]
236
fn test_embedded_hal_error_conversions() {
237
- // This test is simplified since we no longer have SPI/I2C HAL error conversions
238
- // We only test nb error conversion functionality
239
-
+ // This test demonstrates practical nb error conversion:
+ // It converts a nb::Error<DbError> (using a UART hardware error) to a unified hardware error code
+ // via DbError::from_nb_error, and verifies the result.
240
// Test nb error conversion with a known error
241
let known_error = DbError::from_uart_error(0x42);
242
let nb_other_error: nb::Error<DbError> = nb::Error::Other(known_error);
0 commit comments