Addition of "System Time" mode where frames are timestamped by
absolute time from the PC clock.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <QSettings>
|
||||
#include <QThread>
|
||||
#include "canconnection.h"
|
||||
|
||||
@@ -79,6 +80,14 @@ void CANConnection::start()
|
||||
/* set started flag */
|
||||
mStarted = true;
|
||||
|
||||
QSettings settings;
|
||||
|
||||
if (settings.value("Main/TimeClock", false).toBool())
|
||||
{
|
||||
useSystemTime = true;
|
||||
}
|
||||
else useSystemTime = false;
|
||||
|
||||
/* in multithread case, this will be called before entering thread event loop */
|
||||
return piStarted();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user