From 0f729ef0785eba2a2bd8e9581da4050209c2611d Mon Sep 17 00:00:00 2001 From: Ameer Date: Sun, 21 Jun 2020 22:58:53 -0400 Subject: fix for sleep using stl --- src/input_common/gcadapter/gc_adapter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp index db72d7633..e3bcb24f6 100644 --- a/src/input_common/gcadapter/gc_adapter.cpp +++ b/src/input_common/gcadapter/gc_adapter.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include +#include #include "common/logging/log.h" #include "input_common/gcadapter/gc_adapter.h" @@ -182,7 +184,7 @@ void Adapter::ScanThreadFunc() { std::lock_guard lk(initialization_mutex); Setup(); } - Sleep(500); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); } } -- cgit v1.2.3