mirror of
				https://github.com/cjcliffe/CubicSDR.git
				synced 2025-11-03 13:10:27 -05:00 
			
		
		
		
	Merge pull request #484 from vsonnier/fixes_on_021alpha_bookmark1
FIX: wrong directive placement prevent building without HAMLIB
This commit is contained in:
		
						commit
						4919988c7c
					
				@ -179,9 +179,10 @@ private:
 | 
				
			|||||||
    std::atomic<float> spectrumAvgSpeed, mainSplit, visSplit, bookmarkSplit;
 | 
					    std::atomic<float> spectrumAvgSpeed, mainSplit, visSplit, bookmarkSplit;
 | 
				
			||||||
    std::atomic_int dbOffset;
 | 
					    std::atomic_int dbOffset;
 | 
				
			||||||
    std::vector<SDRManualDef> manualDevices;
 | 
					    std::vector<SDRManualDef> manualDevices;
 | 
				
			||||||
 | 
					    std::atomic_bool bookmarksVisible;
 | 
				
			||||||
#if USE_HAMLIB
 | 
					#if USE_HAMLIB
 | 
				
			||||||
    std::atomic_int rigModel, rigRate;
 | 
					    std::atomic_int rigModel, rigRate;
 | 
				
			||||||
    std::string rigPort;
 | 
					    std::string rigPort;
 | 
				
			||||||
    std::atomic_bool rigEnabled, rigFollowMode, rigControlMode, rigCenterLock, rigFollowModem, bookmarksVisible;
 | 
					    std::atomic_bool rigEnabled, rigFollowMode, rigControlMode, rigCenterLock, rigFollowModem;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
@ -189,6 +189,9 @@ private:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    bool lowPerfMode;
 | 
					    bool lowPerfMode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    wxMenuItem *hideBookmarksItem;
 | 
				
			||||||
 | 
					    bool saveDisabled;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef USE_HAMLIB
 | 
					#ifdef USE_HAMLIB
 | 
				
			||||||
    void enableRig();
 | 
					    void enableRig();
 | 
				
			||||||
    void disableRig();
 | 
					    void disableRig();
 | 
				
			||||||
@ -201,7 +204,7 @@ private:
 | 
				
			|||||||
    wxMenuItem *rigCenterLockMenuItem;
 | 
					    wxMenuItem *rigCenterLockMenuItem;
 | 
				
			||||||
    wxMenuItem *rigFollowModemMenuItem;
 | 
					    wxMenuItem *rigFollowModemMenuItem;
 | 
				
			||||||
    wxMenuItem *sdrIFMenuItem;
 | 
					    wxMenuItem *sdrIFMenuItem;
 | 
				
			||||||
    wxMenuItem *hideBookmarksItem;
 | 
					    
 | 
				
			||||||
    std::map<int, wxMenuItem *> rigSerialMenuItems;
 | 
					    std::map<int, wxMenuItem *> rigSerialMenuItems;
 | 
				
			||||||
    std::map<int, wxMenuItem *> rigModelMenuItems;
 | 
					    std::map<int, wxMenuItem *> rigModelMenuItems;
 | 
				
			||||||
    int rigModel;
 | 
					    int rigModel;
 | 
				
			||||||
@ -211,7 +214,6 @@ private:
 | 
				
			|||||||
    std::string rigPort;
 | 
					    std::string rigPort;
 | 
				
			||||||
    int numRigs;
 | 
					    int numRigs;
 | 
				
			||||||
    bool rigInit;
 | 
					    bool rigInit;
 | 
				
			||||||
    bool saveDisabled;
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    wxDECLARE_EVENT_TABLE();
 | 
					    wxDECLARE_EVENT_TABLE();
 | 
				
			||||||
 | 
				
			|||||||
@ -9,6 +9,7 @@
 | 
				
			|||||||
#include <algorithm>
 | 
					#include <algorithm>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "DemodulatorMgr.h"
 | 
					#include "DemodulatorMgr.h"
 | 
				
			||||||
 | 
					#include "CubicSDR.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if USE_HAMLIB
 | 
					#if USE_HAMLIB
 | 
				
			||||||
#include "RigThread.h"
 | 
					#include "RigThread.h"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user