Override UpdateLEDs() for RGBController_Network to always process synchronously

This commit is contained in:
Adam Honse 2021-05-21 16:31:04 -05:00
parent 5e959f6bc3
commit d103906c75
2 changed files with 16 additions and 0 deletions

View file

@ -78,3 +78,17 @@ void RGBController_Network::DeviceUpdateMode()
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();
}

View file

@ -27,6 +27,8 @@ public:
void SetCustomMode();
void DeviceUpdateMode();
void UpdateLEDs();
private:
NetworkClient * client;
unsigned int dev_idx;