Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mavutil: Return mode as 'Mode(msg.custom_mode)' for high-latency streams
Before, when reading high-latency messages that came from a PX4 controller mavutil threw an exception because after the check for PX4, `msg.base_mode` was read immediately. It was not regarded that the `HIGH_LATENCY2` message does not contain a `base_mode` field. This introduces a fix where the mode string for _all_ `HIGH_LATENCY2` messages is returnes as `Mode(msg.custom_mode)`.
- Loading branch information