Browse Source

GCS_MAVLink: correct INS_generic example

segfaults due to lack of singletoin objects in examples
master
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
26d3ffc27d
  1. 5
      libraries/GCS_MAVLink/GCS_Common.cpp

5
libraries/GCS_MAVLink/GCS_Common.cpp

@ -6011,6 +6011,11 @@ bool GCS_MAVLINK::accept_packet(const mavlink_status_t &status, @@ -6011,6 +6011,11 @@ bool GCS_MAVLINK::accept_packet(const mavlink_status_t &status,
*/
void GCS::update_passthru(void)
{
#if APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
// examples don't have AP::serialmanager
return;
#endif
WITH_SEMAPHORE(_passthru.sem);
uint32_t now = AP_HAL::millis();
uint32_t baud1, baud2;

Loading…
Cancel
Save