Add universe_size field to E1.31 configuration to set number of channels per universe
This commit is contained in:
parent
501a1ff489
commit
212c3e6297
3 changed files with 15 additions and 5 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.universe_size = 512;
|
||||
|
||||
if(e131_settings["devices"][device_idx].contains("name"))
|
||||
{
|
||||
|
|
@ -164,6 +165,11 @@ void DetectE131Controllers(std::vector<RGBController*> &rgb_controllers)
|
|||
dev.matrix_height = e131_settings["devices"][device_idx]["matrix_height"];
|
||||
}
|
||||
|
||||
if(e131_settings["devices"][device_idx].contains("universe_size"))
|
||||
{
|
||||
dev.universe_size = e131_settings["devices"][device_idx]["universe_size"];
|
||||
}
|
||||
|
||||
if(e131_settings["devices"][device_idx].contains("type"))
|
||||
{
|
||||
std::string type_val = e131_settings["devices"][device_idx]["type"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue