Skip to content

Commit 1c91c49

Browse files
Improve the example in README, fix OpenCyphal#159
1 parent cde6703 commit 1c91c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ prioritized transmission queue into the CAN driver (or several, if redundant int
120120
```c
121121
for (const CanardFrame* txf = NULL; (txf = canardTxPeek(&ins)) != NULL;) // Look at the top of the TX queue.
122122
{
123-
if (txf->timestamp_usec > getCurrentMicroseconds()) // Ensure TX deadline not expired.
123+
if ((0U == txf->timestamp_usec) || (txf->timestamp_usec > getCurrentMicroseconds())) // Check the deadline.
124124
{
125125
if (!pleaseTransmit(txf)) // Send the frame. Redundant interfaces may be used here.
126126
{

0 commit comments

Comments
 (0)