Skip to content

Commit

Permalink
add debug logging to the harogic source enumeration function
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Aug 22, 2024
1 parent 46e98b9 commit bfdfa2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source_modules/harogic_source/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ class HarogicSourceModule : public ModuleManager::Instance {
for (int i = 0; i < 128; i++) {
// Attempt to open the device with the given ID
int ret = Device_Open(&dev, i, &profile, &binfo);
if (ret < 0) { break; }
if (ret < 0) {
flog::debug("Done searching: {}", ret);
break;
}

// Create serial string
char serial[1024];
Expand Down

0 comments on commit bfdfa2b

Please sign in to comment.