Skip to content

Commit

Permalink
Add ability to flush messages manager's pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
agoessling committed Dec 12, 2022
1 parent ed65662 commit d2afb7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xsens_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ class XsensManager {
start_index_ = 0;
}

void FlushMessages() {
FlushBytes();
ResetReadBuffer();
}

ConfigResult GoToConfig() { return SendConfig(MsgId::kGoToConfig).result; }

ConfigResult GoToMeasurement() { return SendConfig(MsgId::kGoToMeasurement).result; }
Expand Down

0 comments on commit d2afb7b

Please sign in to comment.