Skip to content

Commit

Permalink
make message processing methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Dec 20, 2018
1 parent 816ac65 commit 7ec3162
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions inc/msp/Client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -304,8 +297,6 @@ class Client {
return subscriptions.at(id);
}

void processOneMessage();

private:
/**
* @brief crc compute checksum of data package
Expand All @@ -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<SerialPortImpl> pimpl;
Expand Down

0 comments on commit 7ec3162

Please sign in to comment.