-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
Use a spin lock to recheck the queue size until it has room to push.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,6 +199,5 @@ void FTDI::writeTask() { | |
continue; | ||
|
||
ftdi.write(writeOp.bytes.data(), (int)writeOp.bytes.size()); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kschwarz-intrepidcs
Author
Collaborator
|
||
onWrite(); | ||
} | ||
} |
1 comment
on commit 4cd897b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should address part of #17.
I hope, handling of ftdi.write() return code can be handled as I did in #17 (comment). This helps in debugging.
The same applies to ftdi.read() call.