From 96a19cf925f77649329fba70046145da4c70eb31 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 18 May 2022 17:34:08 +0200 Subject: [PATCH] Fix use of deprecated YARP methods --- xsensmt/XsensMT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xsensmt/XsensMT.cpp b/xsensmt/XsensMT.cpp index be32d28..ef014bb 100644 --- a/xsensmt/XsensMT.cpp +++ b/xsensmt/XsensMT.cpp @@ -109,8 +109,8 @@ bool XsensMT::open(yarp::os::Searchable &config) } std::string comPortString = config.check("serial", yarp::os::Value("/dev/ttyUSB0"), "File of the serial device.").asString().c_str(); - int baudRate = config.check("baud", yarp::os::Value(115200), "Baud rate used by the serial communication.").asInt(); - m_timeoutInSecond = config.check("timeout", yarp::os::Value(0.1), "Timeout of the driver").asDouble(); + int baudRate = config.check("baud", yarp::os::Value(115200), "Baud rate used by the serial communication.").asInt32(); + m_timeoutInSecond = config.check("timeout", yarp::os::Value(0.1), "Timeout of the driver").asFloat64(); m_portInfo = XsPortInfo(comPortString, XsBaud::numericToRate(baudRate));