Use device name for E1.31 controller if the controller only contains the one device
This commit is contained in:
parent
e78ad56839
commit
73a1779813
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,11 @@ RGBController_E131::RGBController_E131(std::vector<E131Device> device_list)
|
|||
|
||||
devices = device_list;
|
||||
|
||||
if(devices.size() == 1)
|
||||
{
|
||||
name = devices[0].name;
|
||||
}
|
||||
|
||||
mode Direct;
|
||||
Direct.name = "Direct";
|
||||
Direct.value = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue