From f2d35466a582040cc92749a21b5ae9635aa62d3d Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Fri, 27 Dec 2019 16:23:37 -0600 Subject: [PATCH] Get Aura address skipping working --- Controllers/AuraController/AuraControllerDetect.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Controllers/AuraController/AuraControllerDetect.cpp b/Controllers/AuraController/AuraControllerDetect.cpp index 31246316..cb2088b0 100644 --- a/Controllers/AuraController/AuraControllerDetect.cpp +++ b/Controllers/AuraController/AuraControllerDetect.cpp @@ -6,6 +6,17 @@ #include #include +#ifdef WIN32 +#include +#else +#include + +static void Sleep(unsigned int milliseconds) +{ + usleep(1000 * milliseconds); +} +#endif + /*----------------------------------------------------------------------*\ | This list contains the available SMBus addresses for mapping Aura RAM | \*----------------------------------------------------------------------*/ @@ -125,6 +136,8 @@ void DetectAuraControllers(std::vector &busses, std::vecto new_controller = new RGBController_Aura(new_aura); rgb_controllers.push_back(new_controller); } + + Sleep(1); } // Check for Aura controller at 0x40