Fix bug: Too many packets requested corrupting serial buffer

This commit is contained in:
jacobperron 2016-02-13 11:50:39 -08:00
parent 9cb3250268
commit fc1fb48930
3 changed files with 60 additions and 46 deletions

View file

@ -88,6 +88,8 @@ namespace create {
// Start and stop reading data from Create
bool startReading();
void stopReading();
// Notifies main thread that data is fresh and makes the user callback
void notifyDataReady();
public:
Serial(boost::shared_ptr<Data> data, const uint8_t& header = create::util::CREATE_2_HEADER);