mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-18 14:54:09 -04:00
Fix access conflicts in HyperX controllers where keepalive thread was directly accessing hardware
This commit is contained in:
1 parent
2d141be356
commit
d13d54fcfd
7 files changed
+7
-7
No files matched your search
@@ -329,7 +329,7 @@ void RGBController_HyperXAlloyElite2::KeepaliveThreadFunction()
|
||||
{
|
||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(1000))
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
UpdateLEDs();
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(50ms);
|
||||
|
||||
@@ -299,7 +299,7 @@ void RGBController_HyperXAlloyOrigins::KeepaliveThread()
|
||||
{
|
||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(50))
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
UpdateLEDs();
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(10ms);;
|
||||
|
||||
@@ -275,7 +275,7 @@ void RGBController_HyperXAlloyOriginsCore::KeepaliveThread()
|
||||
{
|
||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(50))
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
UpdateLEDs();
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(10ms);
|
||||
|
||||
@@ -355,7 +355,7 @@ void RGBController_HyperXKeyboard::KeepaliveThreadFunction()
|
||||
{
|
||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(50))
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
UpdateLEDs();
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(10ms);;
|
||||
|
||||
@@ -131,7 +131,7 @@ void RGBController_HyperXPulsefireFPSPro::KeepaliveThread()
|
||||
{
|
||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(50))
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
UpdateLEDs();
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(10ms);
|
||||
|
||||
@@ -140,7 +140,7 @@ void RGBController_HyperXPulsefireSurge::KeepaliveThread()
|
||||
{
|
||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(50))
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
UpdateLEDs();
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(10ms);
|
||||
|
||||
@@ -140,7 +140,7 @@ void RGBController_HyperXMousemat::KeepaliveThread()
|
||||
{
|
||||
if((std::chrono::steady_clock::now() - last_update_time) > std::chrono::milliseconds(50))
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
UpdateLEDs();
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(10ms);
|
||||
|
||||
Reference in new issue
Block a user