| 12 | GREASEWEAZLE_ID, FLUXENGINE_ID, APPLESAUCE_ID}; |
| 13 | |
| 14 | static const std::string get_serial_number(const libusbp::device& device) |
| 15 | { |
| 16 | try |
| 17 | { |
| 18 | return device.get_serial_number(); |
| 19 | } |
| 20 | catch (const libusbp::error& e) |
| 21 | { |
| 22 | if (e.has_code(LIBUSBP_ERROR_NO_SERIAL_NUMBER)) |
| 23 | return "n/a"; |
| 24 | throw; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | std::vector<std::shared_ptr<CandidateDevice>> findUsbDevices() |
| 29 | { |