mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:38:52 +08:00
fix septentrio: initialize _current_index
Decoder::reset sets it to 0, but it could have been accessed before the first call to reset().
This commit is contained in:
committed by
Alexander Lerach
parent
77d854b045
commit
d13692ca46
@@ -224,7 +224,7 @@ private:
|
|||||||
bool can_parse() const;
|
bool can_parse() const;
|
||||||
|
|
||||||
State _state{State::SearchingSync1};
|
State _state{State::SearchingSync1};
|
||||||
uint16_t _current_index;
|
uint16_t _current_index{0};
|
||||||
message_t _message;
|
message_t _message;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user