Compare commits

2 Commits

Author SHA1 Message Date
b9eda039a0 Merge branch 'master' of https://git.shs.tools/SHS/pip 2020-04-29 18:41:47 +03:00
b24de48931 fix linux piconfig 2020-04-29 18:41:42 +03:00

View File

@@ -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
}