mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Remove RTTI dependency, increase default timeout for communication
This commit is contained in:
@@ -66,7 +66,7 @@ public:
|
||||
bool removeMessageCallback(int id);
|
||||
std::shared_ptr<Message> waitForMessageSync(
|
||||
const std::shared_ptr<MessageFilter>& f = {},
|
||||
std::chrono::milliseconds timeout = std::chrono::milliseconds(50)) {
|
||||
std::chrono::milliseconds timeout = std::chrono::milliseconds(500)) {
|
||||
return waitForMessageSync([](){ return true; }, f, timeout);
|
||||
}
|
||||
// onceWaitingDo is a way to avoid race conditions.
|
||||
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
|
||||
if(message->type == Message::Type::Frame || message->type == Message::Type::Main51 ||
|
||||
message->type == Message::Type::RawMessage || message->type == Message::Type::ReadSettings) {
|
||||
const auto frame = std::dynamic_pointer_cast<RawMessage>(message);
|
||||
const auto frame = std::static_pointer_cast<RawMessage>(message);
|
||||
if(!matchNetworkType(frame->network.getType()))
|
||||
return false;
|
||||
if(!matchNetID(frame->network.getNetID()))
|
||||
|
||||
Reference in New Issue
Block a user