Skip to content

Commit 4e0bd4a

Browse files
Fixed pre-commit script issues.
1 parent 69aa0b4 commit 4e0bd4a

File tree

1 file changed

+6
-7
lines changed
  • ports/stm/common-hal/busio

1 file changed

+6
-7
lines changed

ports/stm/common-hal/busio/UART.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ size_t common_hal_busio_uart_write(busio_uart_obj_t *self, const uint8_t *data,
337337
RUN_BACKGROUND_TASKS;
338338
Status = HAL_UART_GetState(&self->handle);
339339
}
340-
}
341-
else {
340+
} else {
342341
mp_raise_ValueError(translate("UART write error"));
343342
}
344343

@@ -363,13 +362,13 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *handle) {
363362
}
364363
}
365364

366-
#if (1)
367-
// TODO: Implement error handling here
368-
#else
365+
#if (1)
366+
// TODO: Implement error handling here
367+
#else
369368
while (HAL_BUSY == errflag) {
370369
errflag = HAL_UART_Receive_IT(handle, &context->rx_char, 1);
371370
}
372-
#endif
371+
#endif
373372

374373
return;
375374
}
@@ -450,7 +449,7 @@ STATIC void call_hal_irq(int uart_num) {
450449
HAL_UART_IRQHandler(&context->handle);
451450

452451
if (HAL_UART_ERROR_NONE != context->handle.ErrorCode) {
453-
// TODO: Implement error handling here
452+
// TODO: Implement error handling here
454453
}
455454
}
456455
}

0 commit comments

Comments
 (0)