From b24de48931a2aadd2cda035c1685fdb05b2752b1 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 29 Apr 2020 18:41:42 +0300 Subject: [PATCH] fix linux piconfig --- src_main/system/pisystemtests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src_main/system/pisystemtests.cpp b/src_main/system/pisystemtests.cpp index 102e3ea9..5913d4ab 100755 --- a/src_main/system/pisystemtests.cpp +++ b/src_main/system/pisystemtests.cpp @@ -39,9 +39,9 @@ PISystemTests::PISystemTestReader::PISystemTestReader() { #if !defined(WINDOWS) && !defined(FREERTOS) PIConfig conf(PIStringAscii("/etc/pip.conf"), PIIODevice::ReadOnly); //conf.setReopenEnabled(false); - time_resolution_ns = conf.getValue(PIStringAscii("time_resolution_ns"), 1); - time_elapsed_ns = conf.getValue(PIStringAscii("time_elapsed_ns"), 0); - usleep_offset_us = conf.getValue(PIStringAscii("usleep_offset_us"), 60); + time_resolution_ns = conf.getValue(PIStringAscii("time_resolution_ns"), 1).toLong(); + time_elapsed_ns = conf.getValue(PIStringAscii("time_elapsed_ns"), 0).toLong(); + usleep_offset_us = conf.getValue(PIStringAscii("usleep_offset_us"), 60).toLong(); #endif }