mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:01:35 +08:00
Modify the way to clear Data
This commit is contained in:
@@ -476,7 +476,7 @@ bool UavcanGnssBridge::injectData(const uint8_t *const data, const size_t data_l
|
|||||||
}
|
}
|
||||||
|
|
||||||
result = _pub_rtcm.broadcast(msg) >= 0;
|
result = _pub_rtcm.broadcast(msg) >= 0;
|
||||||
msg.data = {};
|
msg.data.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user