Skip to content

Commit 276d16f

Browse files
committed
STM32: fix issue with serial_is_tx_ongoing function
1 parent 7ea50f1 commit 276d16f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

targets/TARGET_STM/serial_api.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,4 +761,14 @@ int serial_is_tx_ongoing(void) {
761761
return TxOngoing;
762762
}
763763

764+
#else
765+
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+
*/
770+
int serial_is_tx_ongoing(void) {
771+
return 0;
772+
}
773+
764774
#endif /* DEVICE_SERIAL */

0 commit comments

Comments
 (0)