mirror of
https://github.com/nqrduck/LimeDriver.git
synced 2024-11-21 17:42:25 +00:00
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.
This commit is contained in:
parent
017742f56d
commit
a50192b675
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@ h5c++ -shlib limedriver.cpp -std=c++11 -lLimeSuite -o limedriver
|
|||
|
||||
#include "limedriver.h"
|
||||
#include <H5PredType.h>
|
||||
#include <iostream>
|
||||
#include <lime/LimeSuite.h>
|
||||
#include <vector>
|
||||
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue