| 310 | } |
| 311 | |
| 312 | void Datastore::probeDevices() |
| 313 | { |
| 314 | Datastore::runOnWorkerThread( |
| 315 | [] |
| 316 | { |
| 317 | hex::log::debug("probing USB"); |
| 318 | auto usbDevices = findUsbDevices(); |
| 319 | |
| 320 | hex::TaskManager::doLater( |
| 321 | [usbDevices] |
| 322 | { |
| 323 | devices.clear(); |
| 324 | devices[DEVICE_FLUXFILE] = { |
| 325 | nullptr, "fluxengine.view.config.fluxfile"_lang}; |
| 326 | devices[DEVICE_MANUAL] = { |
| 327 | nullptr, "fluxengine.view.config.manual"_lang}; |
| 328 | for (auto it : usbDevices) |
| 329 | devices["#" + it->serial] = {it, |
| 330 | fmt::format( |
| 331 | "{} {}", getDeviceName(it->type), it->serial)}; |
| 332 | }); |
| 333 | }); |
| 334 | } |
| 335 | |
| 336 | static void wtClearDiskData() |
| 337 | { |
nothing calls this directly
no test coverage detected