STM32: fix issue with serial_is_tx_ongoing function

pull/8403/head
bcostm 2018-10-12 15:40:11 +02:00
parent 7ea50f1fe4
commit 276d16f70d
1 changed files with 10 additions and 0 deletions

View File

@ -761,4 +761,14 @@ int serial_is_tx_ongoing(void) {
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;
}
#endif /* DEVICE_SERIAL */