diff --git a/targets/TARGET_STM/serial_api.c b/targets/TARGET_STM/serial_api.c index 0772de878b..cac5e47e10 100644 --- a/targets/TARGET_STM/serial_api.c +++ b/targets/TARGET_STM/serial_api.c @@ -662,10 +662,10 @@ int8_t get_uart_index(UARTName uart_name) return -1; } -/* Function to protect deep sleep while a seral Tx is ongoing on not complete - * yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer - * 0 otherwise. - */ +/* Function used to protect deep sleep while a serial transmission is on-going. +.* Returns 1 if there is at least 1 serial instance with an on-going transfer + * and 0 otherwise. +*/ int serial_is_tx_ongoing(void) { int TxOngoing = 0; @@ -759,16 +759,11 @@ int serial_is_tx_ongoing(void) { } #endif - /* If Tx is ongoing, then transfer is */ return TxOngoing; } #else -/* Function to protect deep sleep while a seral Tx is ongoing on not complete - * yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer - * 0 otherwise. - */ int serial_is_tx_ongoing(void) { return 0; }