mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-30 21:12:20 +08:00
All RC decoders share rc_decode_buf. SUMD read its channel count back from it while receiving a frame, so another decoder writing to the buffer could move its write index past the end. px4io feeds the same bytes to DSM, ST24 and SUMD until one locks, and rc_input's protocol scan resumes decoders after the others have used the buffer. Keep the SUMD channel count private, and reset ST24 and SUMD when the rc_input scan switches protocol. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Julian Oes <julian@oes.ch>