UAVCANv1 cleanup and uORB over UAVCANV1 move to own subclass

This commit is contained in:
Peter van der Perk
2021-05-08 13:03:02 +02:00
committed by Lorenz Meier
parent dfb4ec56b1
commit 0c926250a2
16 changed files with 361 additions and 168 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ int16_t CanardNuttXCDev::receive(CanardFrame *received_frame)
// Any recieved CAN messages will cause the poll statement to unblock and run
// This way CAN read runs with minimal latency.
// Note that multiple messages may be received in a short time, so this will try to read any availible in a loop
::poll(&fds, 1, 10);
::poll(&fds, 1, 0);
// Only execute this part if can0 is changed.
if (fds.revents & POLLIN) {