Skip to content

Commit 1d1e2a3

Browse files
Merge pull request #93 from UAVCAN/test_ID_bugfix
Bugfix priority field position in test
2 parents ff5dea2 + 4e0fcbb commit 1d1e2a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_rxerr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <canard.h>
2727

2828
//Independent implementation of ID layout from https://uavcan.org/Specification/4._CAN_bus_transport_layer/
29-
#define CONSTRUCT_PRIO(prio) (((prio) & 0x1F) << 23)
29+
#define CONSTRUCT_PRIO(prio) (((prio) & 0x1F) << 24)
3030
#define CONSTRUCT_MTID(mtid) (((mtid) & 0xFFFF) << 8)
3131
#define CONSTRUCT_SID(sid) (((sid) & 0x7F))
3232
#define CONSTRUCT_DISC(disc) (((disc) & 0x3FFF) << 10)

0 commit comments

Comments
 (0)