summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input_common/gcadapter/gc_adapter.cpp4
1 files changed, 3 insertions, 1 deletions
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 @@
2// Licensed under GPLv2+ 2// Licensed under GPLv2+
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <chrono>
6#include <thread>
5#include "common/logging/log.h" 7#include "common/logging/log.h"
6#include "input_common/gcadapter/gc_adapter.h" 8#include "input_common/gcadapter/gc_adapter.h"
7 9
@@ -182,7 +184,7 @@ void Adapter::ScanThreadFunc() {
182 std::lock_guard<std::mutex> lk(initialization_mutex); 184 std::lock_guard<std::mutex> lk(initialization_mutex);
183 Setup(); 185 Setup();
184 } 186 }
185 Sleep(500); 187 std::this_thread::sleep_for(std::chrono::milliseconds(500));
186 } 188 }
187} 189}
188 190