Skip to content

Commit

Permalink
fixup! Create header with exports for python client
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Feb 11, 2022
1 parent bbb570d commit 6e9560d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/oc_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
#include "oc_streamlined_onboarding.h"
#endif

#include <unistd.h>
#if defined(_WIN32)
#include <windows.h>
#elif defined(__linux__)
#include <unistd.h>
#include <pthread.h>
#else
#error "Unsupported OS"
Expand Down Expand Up @@ -2445,7 +2445,11 @@ python_main(void)
display_device_uuid();

while (quit != 1) {
#if defined(_WIN32)
Sleep(5000);
#elif defined(__linux__)
sleep(5);
#endif
}

#if defined(_WIN32)
Expand Down

0 comments on commit 6e9560d

Please sign in to comment.