Comment cleanup

merge-requests/2/head
Elliott Liggett 2021-02-12 22:50:54 -08:00
rodzic 951c2718ac
commit a6e1d36fea
1 zmienionych plików z 0 dodań i 23 usunięć

Wyświetl plik

@ -1639,31 +1639,8 @@ void wfmain::on_stopBtn_clicked()
void wfmain::receiveMode(unsigned char mode)
{
/*
//ui->modeLabel->setText(mode);
int index;
//bool ok;
index = modes.indexOf(QRegExp(mode)); // find the number corresponding to the mode
// qDebug() << "Received mode " << mode << " current mode: " << currentModeIndex << " search index: " << index;
if( currentModeIndex == index)
{
// do nothing, no need to change the selected mode and fire more events off.
// TODO/NOTE: This will not check the DATA mode status, may be worth re-thinking this.
// Do not update UI.
// return;
} else if((index >= 0) && (index < 9))
{
ui->modeSelectCombo->blockSignals(true);
ui->modeSelectCombo->setCurrentIndex(index);
ui->modeSelectCombo->blockSignals(false);
currentModeIndex = index;
}
*/
qDebug() << "Received mode " << mode << " current mode: " << currentModeIndex;
if((mode >0) && (mode < 0x23))
{
ui->modeSelectCombo->blockSignals(true);