Add missing keepalive_time parameter back to E1.31 json config
This commit is contained in:
parent
a77792a996
commit
d5e344f9d9
1 changed files with 6 additions and 0 deletions
|
|
@ -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"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue