GCS_MAVLink: correct INS_generic example

segfaults due to lack of singletoin objects in examples
This commit is contained in:
Peter Barker 2022-08-13 13:37:53 +10:00 committed by Andrew Tridgell
parent a4773413e4
commit 26d3ffc27d

View File

@ -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;