Communication: Remove extra accidentally added logging
parent
f8b5710a6c
commit
d5087c1ba5
|
|
@ -140,21 +140,12 @@ std::shared_ptr<SerialNumberMessage> Communication::getSerialNumberSync(std::chr
|
||||||
return sendCommand(Command::RequestSerialNumber);
|
return sendCommand(Command::RequestSerialNumber);
|
||||||
}, filter, timeout);
|
}, filter, timeout);
|
||||||
if(!msg) // Did not receive a message
|
if(!msg) // Did not receive a message
|
||||||
{
|
|
||||||
std::cout << "didn't get a message" << std::endl;
|
|
||||||
return std::shared_ptr<SerialNumberMessage>();
|
return std::shared_ptr<SerialNumberMessage>();
|
||||||
}
|
|
||||||
|
|
||||||
auto m51 = std::dynamic_pointer_cast<Main51Message>(msg);
|
auto m51 = std::dynamic_pointer_cast<Main51Message>(msg);
|
||||||
if(!m51) // Could not upcast for some reason
|
if(!m51) // Could not upcast for some reason
|
||||||
{
|
|
||||||
std::cout << "could not upcast" << std::endl;
|
|
||||||
return std::shared_ptr<SerialNumberMessage>();
|
return std::shared_ptr<SerialNumberMessage>();
|
||||||
}
|
return std::dynamic_pointer_cast<SerialNumberMessage>(m51);
|
||||||
|
|
||||||
auto ret = std::dynamic_pointer_cast<SerialNumberMessage>(m51);
|
|
||||||
std::cout << "returning " << ret.get() << std::endl;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
optional< std::vector< optional<DeviceAppVersion> > > Communication::getVersionsSync(std::chrono::milliseconds timeout) {
|
optional< std::vector< optional<DeviceAppVersion> > > Communication::getVersionsSync(std::chrono::milliseconds timeout) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue