mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 04:50:34 -04:00 
			
		
		
		
	Some details changed to the Fox mode frequency warning.
This commit is contained in:
		
							parent
							
								
									4aace2d75c
								
							
						
					
					
						commit
						2d4083e2cf
					
				| @ -4313,15 +4313,17 @@ void MainWindow::guiUpdate() | |||||||
| 
 | 
 | ||||||
|     if(m_mode=="FT8" and SpecOp::FOX==m_specOp) { |     if(m_mode=="FT8" and SpecOp::FOX==m_specOp) { | ||||||
| // Don't allow Fox mode in any of the default FT8 sub-bands.
 | // Don't allow Fox mode in any of the default FT8 sub-bands.
 | ||||||
|       qint32 ft8Freq[]={1840,3573,7074,10136,14074,18100,21074,24915,28074,50313,70100}; |       qint32 ft8Freq[]={1840000,3573000,7074000,10136000,14074000,18100000,21074000,24915000,28074000,50313000,70154000}; | ||||||
|       for(int i=0; i<11; i++) { |       for(int i=0; i<11; i++) { | ||||||
|         int kHzdiff=m_freqNominal/1000 - ft8Freq[i]; |           int kHzdiff=m_freqNominal - ft8Freq[i]; | ||||||
|         if(qAbs(kHzdiff) < 4) { |           if(qAbs(kHzdiff) < 3000 ) { | ||||||
|           m_bTxTime=false; |           m_bTxTime=false; | ||||||
|           if (m_auto) auto_tx_mode (false); |           if (m_auto) auto_tx_mode (false); | ||||||
|           auto const& message = tr ("Please choose another dial frequency." |           if (m_tune) stop_tuning(); | ||||||
|                                     " WSJT-X will not operate in Fox mode" |           auto const& message = tr ("Please choose another dial frequency.\n" | ||||||
|                                     " in the standard FT8 sub-bands."); |                                     "Must be 3Khz away from %1.\n" | ||||||
|  |                                     "WSJT-X will not operate in Fox mode\n" | ||||||
|  |                                     "overlapping the standard FT8 sub-bands.").arg(ft8Freq[i]); | ||||||
|           QTimer::singleShot (0, [=] {               // don't block guiUpdate
 |           QTimer::singleShot (0, [=] {               // don't block guiUpdate
 | ||||||
|             MessageBox::warning_message (this, tr ("Fox Mode warning"), message); |             MessageBox::warning_message (this, tr ("Fox Mode warning"), message); | ||||||
|           }); |           }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user