mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 06:43:35 +08:00
board_serial: use a uint8_t buffer
we should not be using 'char' for binary APIs, as the C standard does not specify if it is signed or unsigned, so results may not be consistent
This commit is contained in:
committed by
Lorenz Meier
parent
0d0c4c3626
commit
37b4cdfce2
@@ -125,7 +125,7 @@ struct otp_lock {
|
||||
#pragma pack(push, 1)
|
||||
union udid {
|
||||
uint32_t serial[3];
|
||||
char data[12];
|
||||
uint8_t data[12];
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user