File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -662,10 +662,10 @@ int8_t get_uart_index(UARTName uart_name)
662
662
return -1 ;
663
663
}
664
664
665
- /* Function to protect deep sleep while a seral Tx is ongoing on not complete
666
- * yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer
667
- * 0 otherwise.
668
- */
665
+ /* Function used to protect deep sleep while a serial transmission is on-going.
666
+ .* Returns 1 if there is at least 1 serial instance with an on-going transfer
667
+ * and 0 otherwise.
668
+ */
669
669
int serial_is_tx_ongoing (void ) {
670
670
int TxOngoing = 0 ;
671
671
@@ -759,8 +759,13 @@ int serial_is_tx_ongoing(void) {
759
759
}
760
760
#endif
761
761
762
- /* If Tx is ongoing, then transfer is */
763
762
return TxOngoing ;
764
763
}
765
764
765
+ #else
766
+
767
+ int serial_is_tx_ongoing (void ) {
768
+ return 0 ;
769
+ }
770
+
766
771
#endif /* DEVICE_SERIAL */
You can’t perform that action at this time.
0 commit comments