mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Don't print the detection banner if no devices were detected.
This commit is contained in:
@@ -24,13 +24,17 @@ int mainTestDevices(int argc, const char* argv[])
|
||||
fmt::print("Detected {} devices:\n", candidates.size());
|
||||
}
|
||||
|
||||
fmt::print("{:15} {:30} {}\n", "Type", "Serial number", "Port (if any)");
|
||||
for (auto& candidate : candidates)
|
||||
if (!candidates.empty())
|
||||
{
|
||||
fmt::print("{:15} {:30} {}\n",
|
||||
getDeviceName(candidate->type),
|
||||
candidate->serial,
|
||||
candidate->serialPort);
|
||||
fmt::print(
|
||||
"{:15} {:30} {}\n", "Type", "Serial number", "Port (if any)");
|
||||
for (auto& candidate : candidates)
|
||||
{
|
||||
fmt::print("{:15} {:30} {}\n",
|
||||
getDeviceName(candidate->type),
|
||||
candidate->serial,
|
||||
candidate->serialPort);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user