From fbd80ef897284e02dd220744eaded91f3eff9195 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 May 2018 10:14:00 +1000 Subject: [PATCH] AP_UAVCAN: fixed build on revo --- .../AP_UAVCAN/examples/UAVCAN_sniffer/UAVCAN_sniffer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/AP_UAVCAN/examples/UAVCAN_sniffer/UAVCAN_sniffer.cpp b/libraries/AP_UAVCAN/examples/UAVCAN_sniffer/UAVCAN_sniffer.cpp index 2f1a922bf8..98b9c94ea7 100644 --- a/libraries/AP_UAVCAN/examples/UAVCAN_sniffer/UAVCAN_sniffer.cpp +++ b/libraries/AP_UAVCAN/examples/UAVCAN_sniffer/UAVCAN_sniffer.cpp @@ -4,7 +4,7 @@ #include #include -#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS +#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && HAL_WITH_UAVCAN #include @@ -144,7 +144,6 @@ static void count_msg(const char *name) static void cb_ ## cbname(const uavcan::ReceivedDataStructure& msg) { count_msg(msg.getDataTypeFullName()); } MSG_CB(uavcan::protocol::NodeStatus, NodeStatus) -MSG_CB(uavcan::protocol::GlobalTimeSync, GlobalTimeSync) MSG_CB(uavcan::equipment::gnss::Fix, Fix) MSG_CB(uavcan::equipment::ahrs::MagneticFieldStrength, MagneticFieldStrength) MSG_CB(uavcan::equipment::air_data::StaticPressure, StaticPressure) @@ -196,7 +195,6 @@ void UAVCAN_sniffer::init(void) #define START_CB(mtype, cbname) (new uavcan::Subscriber(*node))->start(cb_ ## cbname) START_CB(uavcan::protocol::NodeStatus, NodeStatus); - START_CB(uavcan::protocol::GlobalTimeSync, GlobalTimeSync); START_CB(uavcan::equipment::gnss::Fix, Fix); START_CB(uavcan::equipment::ahrs::MagneticFieldStrength, MagneticFieldStrength); START_CB(uavcan::equipment::air_data::StaticPressure, StaticPressure);