mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
Add missing keepalive_time parameter back to E1.31 json config
This commit is contained in:
@@ -52,6 +52,7 @@ void DetectE131Controllers(std::vector<RGBController*> &rgb_controllers)
|
||||
dev.matrix_height = 0;
|
||||
dev.start_channel = 1;
|
||||
dev.start_universe = 1;
|
||||
dev.keepalive_time = 0;
|
||||
dev.universe_size = 512;
|
||||
|
||||
if(e131_settings["devices"][device_idx].contains("name"))
|
||||
@@ -79,6 +80,11 @@ void DetectE131Controllers(std::vector<RGBController*> &rgb_controllers)
|
||||
dev.start_channel = e131_settings["devices"][device_idx]["start_channel"];
|
||||
}
|
||||
|
||||
if(e131_settings["devices"][device_idx].contains("keepalive_time"))
|
||||
{
|
||||
dev.keepalive_time = e131_settings["devices"][device_idx]["keepalive_time"];
|
||||
}
|
||||
|
||||
if(e131_settings["devices"][device_idx].contains("matrix_order"))
|
||||
{
|
||||
std::string matrix_order_val = e131_settings["devices"][device_idx]["matrix_order"];
|
||||
|
||||
Reference in New Issue
Block a user