From ea3011afd1a7b28df69ebb23755cf89b54caefe4 Mon Sep 17 00:00:00 2001 From: sdn-ninja Date: Wed, 8 May 2024 21:42:27 +0100 Subject: [PATCH] Update HackRf.h fixing data types that didn't work and fixing items that needed to be private/public --- src/capture/hackrf/HackRf.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/capture/hackrf/HackRf.h b/src/capture/hackrf/HackRf.h index 6bb1329..2100f10 100644 --- a/src/capture/hackrf/HackRf.h +++ b/src/capture/hackrf/HackRf.h @@ -33,14 +33,15 @@ private: /// @brief Enable extra amplifier U13 on receive. std::vector ampEnable; - /// @brief Vector of pointers to HackRF devices. - std::vector dev; - /// @brief Check status of HackRF API returns. /// @param status Return code of API call. /// @param message Message if API call error. void check_status(uint8_t status, std::string message); +protected: + /// @brief Array of pointers to HackRF devices. + hackrf_device* dev[2]; + /// @brief Callback function for HackRF samples. /// @param transfer HackRF transfer object. /// @return Void. @@ -81,4 +82,4 @@ public: }; -#endif \ No newline at end of file +#endif