fix linux piconfig
This commit is contained in:
@@ -39,9 +39,9 @@ PISystemTests::PISystemTestReader::PISystemTestReader() {
|
|||||||
#if !defined(WINDOWS) && !defined(FREERTOS)
|
#if !defined(WINDOWS) && !defined(FREERTOS)
|
||||||
PIConfig conf(PIStringAscii("/etc/pip.conf"), PIIODevice::ReadOnly);
|
PIConfig conf(PIStringAscii("/etc/pip.conf"), PIIODevice::ReadOnly);
|
||||||
//conf.setReopenEnabled(false);
|
//conf.setReopenEnabled(false);
|
||||||
time_resolution_ns = conf.getValue(PIStringAscii("time_resolution_ns"), 1);
|
time_resolution_ns = conf.getValue(PIStringAscii("time_resolution_ns"), 1).toLong();
|
||||||
time_elapsed_ns = conf.getValue(PIStringAscii("time_elapsed_ns"), 0);
|
time_elapsed_ns = conf.getValue(PIStringAscii("time_elapsed_ns"), 0).toLong();
|
||||||
usleep_offset_us = conf.getValue(PIStringAscii("usleep_offset_us"), 60);
|
usleep_offset_us = conf.getValue(PIStringAscii("usleep_offset_us"), 60).toLong();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user