Skip to content

Commit 4017dea

Browse files
committed
STM32: typo corrections
1 parent 276d16f commit 4017dea

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

targets/TARGET_STM/serial_api.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -660,10 +660,10 @@ int8_t get_uart_index(UARTName uart_name)
660660
return -1;
661661
}
662662

663-
/* Function to protect deep sleep while a seral Tx is ongoing on not complete
664-
* yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer
665-
* 0 otherwise.
666-
*/
663+
/* Function used to protect deep sleep while a serial transmission is on-going.
664+
.* Returns 1 if there is at least 1 serial instance with an on-going transfer
665+
* and 0 otherwise.
666+
*/
667667
int serial_is_tx_ongoing(void) {
668668
int TxOngoing = 0;
669669

@@ -757,16 +757,11 @@ int serial_is_tx_ongoing(void) {
757757
}
758758
#endif
759759

760-
/* If Tx is ongoing, then transfer is */
761760
return TxOngoing;
762761
}
763762

764763
#else
765764

766-
/* Function to protect deep sleep while a seral Tx is ongoing on not complete
767-
* yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer
768-
* 0 otherwise.
769-
*/
770765
int serial_is_tx_ongoing(void) {
771766
return 0;
772767
}

0 commit comments

Comments
 (0)