Skip to content

Commit

Permalink
Merge pull request #34 from Auterion/qgcgov-changes-send-message-dire…
Browse files Browse the repository at this point in the history
…ctly

Send a message directly on NetworkRuntime
  • Loading branch information
ThomasDebrunner authored Jan 22, 2024
2 parents e9ed4ef + c92860e commit 2831956
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/mav/Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ namespace mav {
_heartbeat_message = std::nullopt;
}

void injectMessage(Message &message) {
_sendMessage(message, {});
}

void stop() {
_interface.close();
_should_terminate.store(true);
Expand Down

0 comments on commit 2831956

Please sign in to comment.