Browse Source

AP_RCProtocol: fix segfault in example due to lack of VideoTX singleton

c415-sdk
Peter Barker 5 years ago committed by Peter Barker
parent
commit
8f77536c08
  1. 3
      libraries/AP_RCProtocol/examples/RCProtocolTest/RCProtocolTest.cpp

3
libraries/AP_RCProtocol/examples/RCProtocolTest/RCProtocolTest.cpp

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_RCProtocol/AP_RCProtocol.h>
#include <AP_SerialManager/AP_SerialManager.h>
#include <AP_RCTelemetry/AP_VideoTX.h>
#include <stdio.h>
void setup();
@ -26,6 +27,8 @@ void loop(); @@ -26,6 +27,8 @@ void loop();
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
static AP_VideoTX vtx; // for set_vtx functions
static AP_RCProtocol *rcprot;
// setup routine

Loading…
Cancel
Save