Skip to content

Commit

Permalink
Don't display speed for DMX-Open and DMX-Pro protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp committed Sep 24, 2024
1 parent 1cf470f commit 621d52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xLights/models/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ void Model::AddControllerProperties(wxPropertyGridInterface* grid)
sp->SetAttribute("Max", caps->GetMaxSerialPortChannels());
}
sp->SetEditor("SpinCtrl");
if (cp[idx] != "dmx") {
if (cp[idx] != "dmx" || Contains(protocol, "DMX")) {
// non dmx protocols support speeds
sp = grid->AppendIn(p, new wxEnumProperty("Speed", "ModelControllerConnectionSpeed", cs, wxArrayInt(), idxs));
if (cs.size() == 1 && idxs == 0) {
Expand Down

0 comments on commit 621d52c

Please sign in to comment.