mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-22 00:25:04 -04:00
Add keepalive option for E1.31 output
This commit is contained in:
1 parent
ed01850926
commit
4f5cf83e47
3 files changed
+49
No files matched your search
@@ -56,6 +56,9 @@ void DetectE131Controllers(std::vector<RGBController*> &rgb_controllers)
|
||||
|
||||
bool new_device = false;
|
||||
|
||||
//Clear E131 device data
|
||||
memset(&dev, 0, sizeof(E131Device));
|
||||
|
||||
//Open settings file
|
||||
infile.open(filename);
|
||||
|
||||
@@ -105,6 +108,10 @@ void DetectE131Controllers(std::vector<RGBController*> &rgb_controllers)
|
||||
{
|
||||
dev.start_channel = atoi(value);
|
||||
}
|
||||
else if(strcmp(argument, "keepalive_time") == 0)
|
||||
{
|
||||
dev.keepalive_time = atoi(value);
|
||||
}
|
||||
else if(strcmp(argument, "rgb_order") == 0)
|
||||
{
|
||||
if(strcmp(value, "RGB") == 0)
|
||||
|
||||
Reference in new issue
Block a user