[A]Support for windows.

[B]Modify README.md.
This commit is contained in:
Livox-SDK
2019-02-01 20:41:45 +08:00
parent db26ab1553
commit 41a770c1a2
11 changed files with 153 additions and 42 deletions
+12
View File
@@ -24,7 +24,11 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
#include <string.h>
#include "livox_sdk.h"
@@ -196,10 +200,18 @@ int main(int argc, const char *argv[]) {
SetDeviceStateUpdateCallback(OnDeviceChange);
if (Start()) {
#ifdef WIN32
Sleep(20000);
#else
sleep(20);
#endif
HubStopSampling(OnStopSampleCallback, NULL);
printf("stop sample\n");
#ifdef WIN32
Sleep(10000);
#else
sleep(10);
#endif
}
Uninit();