Add option to disable signal handlers (#65)
This gives the user the option to create their own signal handler without having create::Create interfere. They can disable the sigint/sigterm handler and be responsible for disconnecting from the robot themselves. Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
This commit is contained in:
parent
fbc87dea3f
commit
1563e2b3e1
8 changed files with 35 additions and 19 deletions
|
@ -8,7 +8,8 @@
|
|||
|
||||
namespace create {
|
||||
|
||||
SerialQuery::SerialQuery(std::shared_ptr<Data> d) : Serial(d),
|
||||
SerialQuery::SerialQuery(std::shared_ptr<Data> d, bool install_signal_handler)
|
||||
: Serial(d, install_signal_handler),
|
||||
streamRecoveryTimer(io),
|
||||
packetID(ID_BUMP_WHEELDROP),
|
||||
packetByte(0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue