mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 22:33:34 +08:00
All unit tests compile, but crash. This is the most horrifying commit I've ever made.
This commit is contained in:
@@ -172,7 +172,9 @@ TEST(GlobalTimeSyncSlave, Basic)
|
||||
static uavcan::Frame makeSyncMsg(uavcan::uint64_t usec, uavcan::NodeID snid, uavcan::TransferID tid)
|
||||
{
|
||||
uavcan::Frame frame(uavcan::protocol::GlobalTimeSync::DefaultDataTypeID, uavcan::TransferTypeMessageBroadcast,
|
||||
snid, uavcan::NodeID::Broadcast, 0, tid, true);
|
||||
snid, uavcan::NodeID::Broadcast, tid);
|
||||
frame.setStartOfTransfer(true);
|
||||
frame.setEndOfTransfer(true);
|
||||
EXPECT_EQ(8, frame.setPayload(reinterpret_cast<uint8_t*>(&usec), 8)); // Assuming little endian
|
||||
return frame;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user