Skip to content
Snippets Groups Projects
Commit 7d705895 authored by armar6-demo's avatar armar6-demo
Browse files

Add assertions

parent 11e79eb5
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,12 @@ void GamepadUnit::onConnectComponent()
return;
}
ARMARX_TRACE;
auto age = IceUtil::Time::now() - dataTimestamp->toTime();
ARMARX_CHECK_NOT_NULL(dataTimestamp);
const IceUtil::Time age = IceUtil::Time::now() - dataTimestamp->toTime();
if (age.toMilliSeconds() < getProperty<int>("PublishTimeout").getValue())
{
ARMARX_TRACE;
ARMARX_CHECK_NOT_NULL(topicPrx) << "Topic proxy must not be null.";
topicPrx->reportGamepadState(deviceName, js.name, data, dataTimestamp);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment