mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
By reading sizeof(packet), it could have happened that 2 packets at once were read, and the second one was then ignored. This makes sure that only one packet at a time is read. The other 2 changes are for efficiency.