#include "owInterface.h"
+#ifdef LINUX
#include <unistd.h>
-
+#endif
+#ifdef WIN
+void usleep(int waitTime) {\r
+ __int64 time1 = 0, time2 = 0, freq = 0;\r
+\r
+ QueryPerformanceCounter((LARGE_INTEGER *)&time1);\r
+ QueryPerformanceFrequency((LARGE_INTEGER *)&freq);\r
+\r
+ do {\r
+ QueryPerformanceCounter((LARGE_INTEGER *)&time2);\r
+ } while ((time2 - time1) < waitTime);\r
+}
+#endif
owDevice::owDevice(owInterface *owi_,snum_t num) {
snum=num;
owi=owi_;
void owDeviceDS2438::setDefaultConfig() {
- config->setConfig({1,6, 6,8, 4,7, 7,17, 0,2,3,12,4,0,0,0,0,0,0,0,0,0,0,0});
+ config->setConfig({1,6, 6,8, 4,7, 6,17, 0,2,3,12,4,0,0,0,0,0,0,0,0,0,0,0});
configstate=OWDCS_DEFAULT;
}