mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
GCS_MAVLink: correct INS_generic example
segfaults due to lack of singletoin objects in examples
This commit is contained in:
parent
a4773413e4
commit
26d3ffc27d
@ -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…
Reference in New Issue
Block a user