kopia lustrzana https://gitlab.com/eliggett/wfview
Add conditional for linux/winows compile
rodzic
4159e535fc
commit
ef3beecc64
|
@ -54,6 +54,7 @@ void shuttle::run()
|
|||
if (!handle) {
|
||||
handle = hid_open(0x0C26, 0x001E, NULL);
|
||||
if (!handle) {
|
||||
// No devices found, schedule another check in 1000ms
|
||||
QTimer::singleShot(1000, this, SLOT(run()));
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
#include <QThread>
|
||||
#include <QCoreApplication>
|
||||
#include <QTimer>
|
||||
#ifdef Q_OS_LINUX
|
||||
#include "hidapi/hidapi.h"
|
||||
#else
|
||||
#include "hidapi.h"
|
||||
#endif
|
||||
|
||||
#ifndef Q_OS_WIN
|
||||
//Headers needed for sleeping.
|
||||
|
|
Ładowanie…
Reference in New Issue