From 5782e5c5fd6c55bfa50e22e2e6fe3d51028d7eb9 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 10 Aug 2017 09:23:38 -1000 Subject: [PATCH] uavcan:Removed PX4FMUv1 support --- src/modules/uavcan/uavcan_main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/uavcan/uavcan_main.cpp b/src/modules/uavcan/uavcan_main.cpp index f2f18e921e..19421c818b 100644 --- a/src/modules/uavcan/uavcan_main.cpp +++ b/src/modules/uavcan/uavcan_main.cpp @@ -168,10 +168,7 @@ int UavcanNode::getHardwareVersion(uavcan::protocol::HardwareVersion &hwver) int rv = -1; if (UavcanNode::instance()) { - if (!std::strncmp(px4_board_name(), "PX4FMU_V1", 9)) { - hwver.major = 1; - - } else if (!std::strncmp(px4_board_name(), "PX4FMU_V2", 9)) { + if (!std::strncmp(px4_board_name(), "PX4FMU_V2", 9)) { hwver.major = 2; } else {