diff --git a/inc/msp/Client.hpp b/inc/msp/Client.hpp index 9ee5cb4..35e4bc1 100644 --- a/inc/msp/Client.hpp +++ b/inc/msp/Client.hpp @@ -149,13 +149,6 @@ class Client { */ void connect(const std::string &device, const size_t baudrate=115200); - /** - * @brief waitForOneMessage block until one message has been received - */ - void waitForOneMessage(); - - void waitForOneMessageBlock(); - /** * @brief start starts the receiver thread that handles incomming messages */ @@ -304,8 +297,6 @@ class Client { return subscriptions.at(id); } - void processOneMessage(); - private: /** * @brief crc compute checksum of data package @@ -315,6 +306,15 @@ class Client { */ uint8_t crc(const uint8_t id, const ByteVector &data); + /** + * @brief waitForOneMessage block until one message has been received + */ + void waitForOneMessage(); + + void waitForOneMessageBlock(); + + void processOneMessage(); + private: // I/O std::unique_ptr pimpl;