Commit 7eab4afb authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[driver] Display code of received message (if not CID_STATUS)

parent 7fbce2ac
......@@ -31,12 +31,15 @@ void SeatracDriver::on_receive(const std::vector<uint8_t>& data)
}
switch(msgId) {
default:
std::cout << "Got message : " << msgId << std::endl << std::flush;
break;
case CID_PING_REQ:
std::cout << "Got a Ping Request" << std::endl;
std::cout << "Got a Ping Request" << std::endl << std::flush;
break;
case CID_PING_RESP:
std::cout << "Got a Ping Repsonse" << std::endl;
std::cout << "Got a Ping Repsonse" << std::endl << std::flush;
break;
case CID_STATUS:
break;
}
// std::cout << "Received : " << data.size() << " bytes." << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment