Skip to content
Snippets Groups Projects
Commit 1c546f7f authored by rmackay9's avatar rmackay9
Browse files

FastSerial: add accessor function for blocking writes

parent 93063a81
No related branches found
No related tags found
Loading
......@@ -165,6 +165,9 @@ public:
_nonblocking_writes = !blocking;
}
// get status of whether writes are blocking
bool get_blocking_writes() { return !_nonblocking_writes; }
// return true if there are bytes pending transmission
bool tx_pending(void) {
return (_txBuffer->head != _txBuffer->tail);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment