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

This commit is contained in:
David Sidrane
2017-09-17 01:42:55 -10:00
committed by Daniel Agar
parent 7698c08eb7
commit e967e02c4d
+2 -2
View File
@@ -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);
}