Override UpdateLEDs() for RGBController_Network to always process synchronously
This commit is contained in:
parent
5e959f6bc3
commit
d103906c75
2 changed files with 16 additions and 0 deletions
|
|
@ -78,3 +78,17 @@ void RGBController_Network::DeviceUpdateMode()
|
||||||
|
|
||||||
delete[] data;
|
delete[] data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-----------------------------------------------------*\
|
||||||
|
| This function overrides RGBController::UpdateLEDs()! |
|
||||||
|
| Normally, UpdateLEDs() sets a flag for the updater |
|
||||||
|
| thread to update the device asynchronously, which |
|
||||||
|
| prevents delays updating local devices. This causes |
|
||||||
|
| instability and flickering with network devices though|
|
||||||
|
| so for the network implementation, process all updates|
|
||||||
|
| synchronously. |
|
||||||
|
\*-----------------------------------------------------*/
|
||||||
|
void RGBController_Network::UpdateLEDs()
|
||||||
|
{
|
||||||
|
DeviceUpdateLEDs();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ public:
|
||||||
void SetCustomMode();
|
void SetCustomMode();
|
||||||
void DeviceUpdateMode();
|
void DeviceUpdateMode();
|
||||||
|
|
||||||
|
void UpdateLEDs();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NetworkClient * client;
|
NetworkClient * client;
|
||||||
unsigned int dev_idx;
|
unsigned int dev_idx;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue