catch boost exceptions in Serial.h

This commit is contained in:
Swapnil Patel 2022-06-27 22:38:18 -04:00 committed by Jacob Perron
parent c694bd30d3
commit de253b6e81
2 changed files with 50 additions and 16 deletions

View file

@ -71,6 +71,8 @@ namespace create {
// Start and stop reading data from Create
bool startReading();
void stopReading();
bool openPort(const std::string& portName, const int& baud);
bool closePort();
protected:
std::shared_ptr<Data> data;