diff --git a/libraries/AP_RCProtocol/examples/RCProtocolDecoder/RCProtocolDecoder.cpp b/libraries/AP_RCProtocol/examples/RCProtocolDecoder/RCProtocolDecoder.cpp index be0223e2cd8..c0b03f12c92 100644 --- a/libraries/AP_RCProtocol/examples/RCProtocolDecoder/RCProtocolDecoder.cpp +++ b/libraries/AP_RCProtocol/examples/RCProtocolDecoder/RCProtocolDecoder.cpp @@ -20,6 +20,9 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); +void setup(); +void loop(); + #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX || CONFIG_HAL_BOARD == HAL_BOARD_SITL #include @@ -34,10 +37,6 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); #include #include -void setup(); -void loop(); - - static AP_RCProtocol *rcprot; // change this to the device being tested.