aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.cpp
diff options
context:
space:
mode:
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;
}
}