mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 19:00:35 +08:00
2d5184fcfe
Instead of blocking the receiver thread while playing a tune we now copy the tune to a buffer and check if we can play the next note on each iteration of the receiver thread. The buffer and tune object is only created on the heap if we receive a tune to play once and doesn't use resources otherwise.