mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-04 05:50:31 -05:00 
			
		
		
		
	Correct a logic flaw that occurred after *Tune* was used.
Remove some disused diagnostics. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5581 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									aa561deed2
								
							
						
					
					
						commit
						5968277cd7
					
				@ -998,7 +998,6 @@ void MainWindow::monitor (bool state)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  ui->monitorButton->setChecked (state);
 | 
					  ui->monitorButton->setChecked (state);
 | 
				
			||||||
  if (state) {
 | 
					  if (state) {
 | 
				
			||||||
//    qDebug() << "monitor" << fmod(0.001*QDateTime::currentMSecsSinceEpoch(),6.0);
 | 
					 | 
				
			||||||
    if (!m_monitoring) Q_EMIT resumeAudioInputStream ();
 | 
					    if (!m_monitoring) Q_EMIT resumeAudioInputStream ();
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    Q_EMIT suspendAudioInputStream ();
 | 
					    Q_EMIT suspendAudioInputStream ();
 | 
				
			||||||
@ -1887,7 +1886,7 @@ void MainWindow::guiUpdate()
 | 
				
			|||||||
    if ((onAirFreq > 10139900 and onAirFreq < 10140320) and
 | 
					    if ((onAirFreq > 10139900 and onAirFreq < 10140320) and
 | 
				
			||||||
        m_mode.mid(0,4)!="WSPR") {
 | 
					        m_mode.mid(0,4)!="WSPR") {
 | 
				
			||||||
      m_bTxTime=false;
 | 
					      m_bTxTime=false;
 | 
				
			||||||
      if (m_tune) stop_tuning ();
 | 
					//      if (m_tune) stop_tuning ();
 | 
				
			||||||
      if (m_auto) auto_tx_mode (false);
 | 
					      if (m_auto) auto_tx_mode (false);
 | 
				
			||||||
      if(onAirFreq!=onAirFreq0) {
 | 
					      if(onAirFreq!=onAirFreq0) {
 | 
				
			||||||
        onAirFreq0=onAirFreq;
 | 
					        onAirFreq0=onAirFreq;
 | 
				
			||||||
@ -2241,7 +2240,6 @@ void MainWindow::stopTx()
 | 
				
			|||||||
  g_iptt=0;
 | 
					  g_iptt=0;
 | 
				
			||||||
  tx_status_label->setStyleSheet("");
 | 
					  tx_status_label->setStyleSheet("");
 | 
				
			||||||
  tx_status_label->setText("");
 | 
					  tx_status_label->setText("");
 | 
				
			||||||
//  qDebug() << "StopTx" << fmod(0.001*QDateTime::currentMSecsSinceEpoch(),6.0);
 | 
					 | 
				
			||||||
  ptt0Timer->start(200);                       //Sequencer delay
 | 
					  ptt0Timer->start(200);                       //Sequencer delay
 | 
				
			||||||
  monitor (true);
 | 
					  monitor (true);
 | 
				
			||||||
  m_messageClient->status_update (m_dialFreq, m_mode, m_hisCall,
 | 
					  m_messageClient->status_update (m_dialFreq, m_mode, m_hisCall,
 | 
				
			||||||
@ -2252,7 +2250,6 @@ void MainWindow::stopTx()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void MainWindow::stopTx2()
 | 
					void MainWindow::stopTx2()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
//  qDebug() << "StopTx2" << fmod(0.001*QDateTime::currentMSecsSinceEpoch(),6.0);
 | 
					 | 
				
			||||||
  Q_EMIT m_config.transceiver_ptt (false);      //Lower PTT
 | 
					  Q_EMIT m_config.transceiver_ptt (false);      //Lower PTT
 | 
				
			||||||
  if (m_mode.mid(0,4)!="WSPR" and m_mode!="Echo" and m_config.watchdog() and
 | 
					  if (m_mode.mid(0,4)!="WSPR" and m_mode!="Echo" and m_config.watchdog() and
 | 
				
			||||||
      m_repeatMsg>=m_watchdogLimit-1) {
 | 
					      m_repeatMsg>=m_watchdogLimit-1) {
 | 
				
			||||||
@ -3513,15 +3510,16 @@ void MainWindow::on_tuneButton_clicked (bool checked)
 | 
				
			|||||||
    m_repeatMsg=0;
 | 
					    m_repeatMsg=0;
 | 
				
			||||||
    itone[0]=0;
 | 
					    itone[0]=0;
 | 
				
			||||||
    on_monitorButton_clicked (true);
 | 
					    on_monitorButton_clicked (true);
 | 
				
			||||||
 | 
					    m_tune=true;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  m_tune = checked;
 | 
					 | 
				
			||||||
  Q_EMIT tune (checked);
 | 
					  Q_EMIT tune (checked);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainWindow::stop_tuning ()
 | 
					void MainWindow::stop_tuning ()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  ui->tuneButton->setChecked (false);
 | 
					  ui->tuneButton->setChecked (false);
 | 
				
			||||||
  on_tuneButton_clicked (false);
 | 
					  m_bTxTime=false;
 | 
				
			||||||
 | 
					  m_tune=false;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainWindow::stopTuneATU()
 | 
					void MainWindow::stopTuneATU()
 | 
				
			||||||
@ -3726,8 +3724,6 @@ void MainWindow::transmit (double snr)
 | 
				
			|||||||
                        true, snr);
 | 
					                        true, snr);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if(m_mode=="Echo") {
 | 
					  if(m_mode=="Echo") {
 | 
				
			||||||
//    qDebug() << "Start Echo Tx" << fmod(0.001*QDateTime::currentMSecsSinceEpoch(),6.0);
 | 
					 | 
				
			||||||
//    Q_EMIT tune(true);
 | 
					 | 
				
			||||||
    Q_EMIT sendMessage (27, 1024.0, 1500.0, 0.0, &m_soundOutput,
 | 
					    Q_EMIT sendMessage (27, 1024.0, 1500.0, 0.0, &m_soundOutput,
 | 
				
			||||||
                        m_config.audio_output_channel(),false, snr);
 | 
					                        m_config.audio_output_channel(),false, snr);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user