From cf438142402645a3f9f2159f50dafbe9eb769325 Mon Sep 17 00:00:00 2001 From: Excalibur <104138693+DSR3164@users.noreply.github.com> Date: Sat, 16 May 2026 22:55:16 +0700 Subject: [PATCH] fix: remove stale static cache in find_PlutoSDR Static `results` variable caused find_PlutoSDR to return the same device list on every call, ignoring args and preventing detection of connect/disconnect events. --- PlutoSDR_Registration.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PlutoSDR_Registration.cpp b/PlutoSDR_Registration.cpp index a62e1b2..8ba54f5 100644 --- a/PlutoSDR_Registration.cpp +++ b/PlutoSDR_Registration.cpp @@ -7,11 +7,9 @@ #include #endif -static std::vector results; static std::vector find_PlutoSDR(const SoapySDR::Kwargs &args) { - - if (!results.empty()) - return results; + + std::vector results; ssize_t ret = 0; iio_context *ctx = nullptr;