Merge pull request #484 from vsonnier/fixes_on_021alpha_bookmark1

FIX: wrong directive placement prevent building without HAMLIB
This commit is contained in:
Charles J. Cliffe 2017-01-03 17:36:00 -05:00 committed by GitHub
commit 4919988c7c
3 changed files with 7 additions and 3 deletions

View File

@ -179,9 +179,10 @@ private:
std::atomic<float> spectrumAvgSpeed, mainSplit, visSplit, bookmarkSplit;
std::atomic_int dbOffset;
std::vector<SDRManualDef> manualDevices;
std::atomic_bool bookmarksVisible;
#if USE_HAMLIB
std::atomic_int rigModel, rigRate;
std::string rigPort;
std::atomic_bool rigEnabled, rigFollowMode, rigControlMode, rigCenterLock, rigFollowModem, bookmarksVisible;
std::atomic_bool rigEnabled, rigFollowMode, rigControlMode, rigCenterLock, rigFollowModem;
#endif
};

View File

@ -189,6 +189,9 @@ private:
bool lowPerfMode;
wxMenuItem *hideBookmarksItem;
bool saveDisabled;
#ifdef USE_HAMLIB
void enableRig();
void disableRig();
@ -201,7 +204,7 @@ private:
wxMenuItem *rigCenterLockMenuItem;
wxMenuItem *rigFollowModemMenuItem;
wxMenuItem *sdrIFMenuItem;
wxMenuItem *hideBookmarksItem;
std::map<int, wxMenuItem *> rigSerialMenuItems;
std::map<int, wxMenuItem *> rigModelMenuItems;
int rigModel;
@ -211,7 +214,6 @@ private:
std::string rigPort;
int numRigs;
bool rigInit;
bool saveDisabled;
#endif
wxDECLARE_EVENT_TABLE();

View File

@ -9,6 +9,7 @@
#include <algorithm>
#include "DemodulatorMgr.h"
#include "CubicSDR.h"
#if USE_HAMLIB
#include "RigThread.h"