MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onToggleAGCEnabled

Method onToggleAGCEnabled

Default/Source/SourceWidget.cpp:1287–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1285}
1286
1287void
1288SourceWidget::onToggleAGCEnabled(void)
1289{
1290 this->setAGCEnabled(this->ui->agcEnabledCheck->isChecked());
1291
1292 if (m_analyzer != nullptr) {
1293 try {
1294 m_analyzer->setAGC(this->panelConfig->agcEnabled);
1295 } catch (Suscan::Exception &) {
1296 (void) QMessageBox::critical(
1297 this,
1298 "SigDigger error",
1299 "Source does not allow toggling the AGC setting",
1300 QMessageBox::Ok);
1301 }
1302 }
1303}
1304
1305void
1306SourceWidget::onAntennaChanged(int)

Callers 1

Calls 2

setAGCEnabledMethod · 0.95
setAGCMethod · 0.80

Tested by

no test coverage detected