Send a message on the CAN FD channel and record any errors
| 475 | |
| 476 | // Send a message on the CAN FD channel and record any errors |
| 477 | static void SendCanMessage(CanDevice::TxBufferNumber whichBuffer, uint32_t timeout, CanMessageBuffer *buffer) noexcept |
| 478 | { |
| 479 | const uint32_t cancelledId = can0dev->SendMessage(whichBuffer, timeout, buffer); |
| 480 | if (cancelledId != 0) |
| 481 | { |
| 482 | ++txTimeouts[(unsigned int)whichBuffer]; |
| 483 | lastCancelledId = cancelledId; |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | // This task picks up motion messages and sends them |
| 488 | extern "C" [[noreturn]] void CanSenderLoop(void *) noexcept |
no outgoing calls
no test coverage detected