Browse Source

HW Rev & Ver:0 for no value, -1 for not supported

sbg
David Sidrane 8 years ago committed by Daniel Agar
parent
commit
e967e02c4d
  1. 4
      src/systemcmds/ver/ver.c

4
src/systemcmds/ver/ver.c

@ -152,11 +152,11 @@ int ver_main(int argc, char *argv[])
int v = px4_board_hw_version(); int v = px4_board_hw_version();
int r = px4_board_hw_revision(); int r = px4_board_hw_revision();
if (v > 0) { if (v >= 0) {
snprintf(vb, sizeof(vb), "0x%08X", v); snprintf(vb, sizeof(vb), "0x%08X", v);
} }
if (r > 0) { if (r >= 0) {
snprintf(rb, sizeof(rb), "0x%08X", r); snprintf(rb, sizeof(rb), "0x%08X", r);
} }

Loading…
Cancel
Save