|
73 | 73 | static bool isMadeByRc(const wxVector<wxVariant> &device)
|
74 | 74 | {
|
75 | 75 | return device[DiscoverFrame::MANUFACTURER].GetString() == ROBOCEPTION ||
|
76 |
| - device[DiscoverFrame::MODEL].GetString().StartsWith(RC_VISARD) || |
77 |
| - device[DiscoverFrame::MODEL].GetString().StartsWith(RC_CUBE); |
| 76 | + device[DiscoverFrame::MODEL].GetString().StartsWith("rc_"); |
78 | 77 | }
|
79 | 78 |
|
80 | 79 | static bool isMadeByRc(const wxDataViewListCtrl &device_list, unsigned int row)
|
81 | 80 | {
|
82 | 81 | return device_list.GetTextValue(row, DiscoverFrame::MANUFACTURER) == ROBOCEPTION ||
|
83 |
| - device_list.GetTextValue(row, DiscoverFrame::MODEL).StartsWith(RC_VISARD) || |
84 |
| - device_list.GetTextValue(row, DiscoverFrame::MODEL).StartsWith(RC_CUBE); |
| 82 | + device_list.GetTextValue(row, DiscoverFrame::MODEL).StartsWith("rc_"); |
85 | 83 | }
|
86 | 84 |
|
87 | 85 | static bool isRcVisard(const wxVector<wxVariant> &device)
|
@@ -150,7 +148,7 @@ DiscoverFrame::DiscoverFrame(const wxString& title,
|
150 | 148 | int w, h;
|
151 | 149 | discover_button_->GetSize(&w, &h);
|
152 | 150 | auto *only_rc_cbox = new wxCheckBox(panel, ID_OnlyRcCheckbox,
|
153 |
| - "Only Roboception devices", |
| 151 | + "Only rc_... devices", |
154 | 152 | wxDefaultPosition, wxSize(-1, h));
|
155 | 153 | only_rc_cbox->SetValue(only_rc_sensors_);
|
156 | 154 | button_box->Add(only_rc_cbox, 1);
|
|
0 commit comments