You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
392 B
C++

#include "stmdsp.hpp"
#include <serial/serial.h>
namespace stmdsp
{
std::list<std::string>& scanner::scan()
{
auto serialDevices = serial::list_ports();
for (auto& device : serialDevices) {
if (device.hardware_id.find(STMDSP_USB_ID) != std::string::npos)
m_devices.emplace_front(device.port);
}
return m_devices;
}
}