From a50192b675180b1e14db073b8245f04802251c2c Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 17 Feb 2024 18:10:52 +0100 Subject: [PATCH] Added logging for device opening in LimeDriver The LimeDriver now outputs a message to standard output when attempting to open a device, offering real-time feedback on which device is being accessed. This aids in debugging and provides users with immediate visibility into driver actions. --- src/limedriver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/limedriver.cpp b/src/limedriver.cpp index de9b255..4feda4d 100644 --- a/src/limedriver.cpp +++ b/src/limedriver.cpp @@ -15,6 +15,7 @@ h5c++ -shlib limedriver.cpp -std=c++11 -lLimeSuite -o limedriver #include "limedriver.h" #include +#include #include #include @@ -129,6 +130,8 @@ lms_device_t *openDevice(const std::string &info) { info_string = deviceList[0]; } + cout << "Opening device: " << info_string << endl; + lms_device_t *dev = NULL; if (LMS_Open(&dev, info.c_str(), NULL)) { error();