mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 11:13:34 +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
@@ -1784,7 +1784,7 @@ fmu_main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (!strcmp(verb, "id")) {
|
||||
char id[12];
|
||||
uint8_t id[12];
|
||||
(void)get_board_serial(id);
|
||||
|
||||
errx(0, "Board serial:\n %02X%02X%02X%02X %02X%02X%02X%02X %02X%02X%02X%02X",
|
||||
|
||||
Reference in New Issue
Block a user