mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +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;
|
||||
|
||||
State _state{State::SearchingSync1};
|
||||
uint16_t _current_index;
|
||||
uint16_t _current_index{0};
|
||||
message_t _message;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user