Skip to content

Commit

Permalink
Fixed #1259
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Dec 26, 2023
1 parent 794d6ff commit f3c5b2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source_modules/hackrf_source/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ class HackRFSourceModule : public ModuleManager::Instance {
hackrf_device_list_t* _devList = hackrf_device_list();

for (int i = 0; i < _devList->devicecount; i++) {
// Skip devices that are in use
if (_devList->serial_numbers[i] == NULL) { continue; }

// Save the device serial number
devList.push_back(_devList->serial_numbers[i]);
devListTxt += (char*)(_devList->serial_numbers[i] + 16);
devListTxt += '\0';
Expand Down

0 comments on commit f3c5b2c

Please sign in to comment.