aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-06-18 20:40:37 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-06-18 20:40:37 -0400
commitda8d7ffe8a12c10f819f103de1194511bdb3776e (patch)
treefd7993f432cacfbb76c55604c20a88337eb87d33 /gui/stmdsp.cpp
parent6473b57cefe4c13cb262ed78bf0e49fe18a20267 (diff)
drafted device interface
Diffstat (limited to 'gui/stmdsp.cpp')
-rw-r--r--gui/stmdsp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/stmdsp.cpp b/gui/stmdsp.cpp
index 5445264..4812884 100644
--- a/gui/stmdsp.cpp
+++ b/gui/stmdsp.cpp
@@ -6,12 +6,12 @@ namespace stmdsp
{
std::list<std::string>& scanner::scan()
{
- auto serialDevices = serial::list_ports();
- for (auto& device : serialDevices) {
+ auto devices = serial::list_ports();
+ for (auto& device : devices) {
if (device.hardware_id.find(STMDSP_USB_ID) != std::string::npos)
- m_devices.emplace_front(device.port);
+ m_available_devices.emplace_front(device.port);
}
- return m_devices;
+ return m_available_devices;
}
}