Skip to content

Commit

Permalink
Autonomy/TextActions: Fixed not sending acoustic replies.
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinto committed Sep 9, 2019
1 parent c32473d commit 0db9e5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Autonomy/TextActions/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,14 @@ namespace Autonomy
}
else if (String::startsWith(origin, "acoustic/"))
{
if (origin.length() < 10)
{
war("Bad acoustic origin: %s", origin.c_str());
return;
}
req.comm_mean = TransmissionRequest::CMEAN_ACOUSTIC;
req.destination = origin.substr(9);
dispatch(req);
}
else
war("Not replying as origin is not addressable: '%s'.",
Expand Down

0 comments on commit 0db9e5d

Please sign in to comment.