Skip to content

Commit d1e300c

Browse files
committed
change filter only Roboception devices to only rc_... devices
1 parent c01e5bb commit d1e300c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

tools/rcdiscover-gui/discover-frame.cc

+3-5
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,13 @@
7373
static bool isMadeByRc(const wxVector<wxVariant> &device)
7474
{
7575
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_");
7877
}
7978

8079
static bool isMadeByRc(const wxDataViewListCtrl &device_list, unsigned int row)
8180
{
8281
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_");
8583
}
8684

8785
static bool isRcVisard(const wxVector<wxVariant> &device)
@@ -150,7 +148,7 @@ DiscoverFrame::DiscoverFrame(const wxString& title,
150148
int w, h;
151149
discover_button_->GetSize(&w, &h);
152150
auto *only_rc_cbox = new wxCheckBox(panel, ID_OnlyRcCheckbox,
153-
"Only Roboception devices",
151+
"Only rc_... devices",
154152
wxDefaultPosition, wxSize(-1, h));
155153
only_rc_cbox->SetValue(only_rc_sensors_);
156154
button_box->Add(only_rc_cbox, 1);

tools/rcdiscover-gui/resources.h

-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ void registerResources();
2020

2121
const static std::string ROBOCEPTION = "Roboception GmbH";
2222
const static std::string RC_VISARD = "rc_visard";
23-
const static std::string RC_CUBE = "rc_cube";
2423

2524
#endif /* REGISTER_RESOURCES */

0 commit comments

Comments
 (0)