mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
The S.Bus scale constants are float, so lround promoted the argument to double and pulled soft-double code into FPU-less targets like the IO. lroundf rounds the same float value identically (checked exhaustively over all encode and decode inputs) and saves 1104 B on the IO. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Julian Oes <julian@oes.ch>