1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

HackRF input: refactoring: device open close moved in the constructor and destructor respectively of the input object

This commit is contained in:
f4exb
2017-04-14 00:14:40 +02:00
parent afaf3428f5
commit ecdc99f59b
2 changed files with 61 additions and 51 deletions
@@ -81,6 +81,8 @@ public:
virtual bool handleMessage(const Message& message);
private:
bool openDevice();
void closeDevice();
bool applySettings(const HackRFInputSettings& settings, bool force);
// hackrf_device *open_hackrf_from_sequence(int sequence);
void setCenterFrequency(quint64 freq);
@@ -92,6 +94,7 @@ private:
HackRFInputThread* m_hackRFThread;
QString m_deviceDescription;
DeviceHackRFParams m_sharedParams;
bool m_running;
};
#endif // INCLUDE_HACKRFINPUT_H