Skip to content

Commit

Permalink
mavlink-core: src: Fix embedded v2 read header
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Aug 22, 2024
1 parent 4faca0e commit 06f1eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavlink-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ pub async fn read_v2_raw_message_async<M: Message>(

let mut message = MAVLinkV2MessageRaw::new();

message.0[0] = MAV_STX;
message.0[0] = MAV_STX_V2;
reader
.read_exact(message.mut_header())
.await
Expand Down

0 comments on commit 06f1eef

Please sign in to comment.