mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 06:40:35 +08:00
Byte order fix in logging
This commit is contained in:
+1
-1
@@ -200,7 +200,7 @@ class AllocationRequestManager
|
||||
uint64_t event_agrument = 0;
|
||||
for (uint8_t i = 0; i < 8; i++)
|
||||
{
|
||||
event_agrument |= static_cast<uint64_t>(unique_id[i]) << (i * 8U);
|
||||
event_agrument |= static_cast<uint64_t>(unique_id[i]) << (56U - i * 8U);
|
||||
}
|
||||
trace(TraceAllocationExchangeComplete, static_cast<int64_t>(event_agrument));
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ enum TraceCode
|
||||
TraceAllocationUnexpectedStage, // stage number in the request - 1, 2, or 3
|
||||
// 35
|
||||
TraceAllocationRequestAccepted, // number of bytes of unique ID after request
|
||||
TraceAllocationExchangeComplete, // first 8 bytes of unique ID interpreted as signed 64 bit little endian
|
||||
TraceAllocationExchangeComplete, // first 8 bytes of unique ID interpreted as signed 64 bit big endian
|
||||
TraceAllocationResponse, // allocated node ID
|
||||
Trace11,
|
||||
Trace12,
|
||||
|
||||
Reference in New Issue
Block a user