From bfdfa2b30b017b7f266ebd8703a4c124c79bdd19 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Thu, 22 Aug 2024 02:20:51 +0200 Subject: [PATCH] add debug logging to the harogic source enumeration function --- source_modules/harogic_source/src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source_modules/harogic_source/src/main.cpp b/source_modules/harogic_source/src/main.cpp index 6f663d14..499e4e62 100644 --- a/source_modules/harogic_source/src/main.cpp +++ b/source_modules/harogic_source/src/main.cpp @@ -77,7 +77,10 @@ private: 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];