mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 18:37:35 +08:00
HW Rev & Ver:0 for no value, -1 for not supported
This commit is contained in:
committed by
Daniel Agar
parent
7698c08eb7
commit
e967e02c4d
@@ -152,11 +152,11 @@ int ver_main(int argc, char *argv[])
|
||||
int v = px4_board_hw_version();
|
||||
int r = px4_board_hw_revision();
|
||||
|
||||
if (v > 0) {
|
||||
if (v >= 0) {
|
||||
snprintf(vb, sizeof(vb), "0x%08X", v);
|
||||
}
|
||||
|
||||
if (r > 0) {
|
||||
if (r >= 0) {
|
||||
snprintf(rb, sizeof(rb), "0x%08X", r);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user