MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / channel_check

Method channel_check

DSView/pv/dialogs/deviceoptions.cpp:537–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void DeviceOptions::channel_check()
538{
539 QRadioButton* bt = dynamic_cast<QRadioButton*>(sender());
540 assert(bt);
541
542 int mode_index = -1;
543
544 for( auto p : _channel_mode_indexs){
545 if (p.key == bt){
546 mode_index = p.value;
547 break;
548 }
549 }
550 assert(mode_index >= 0);
551 _device_agent->set_config_int16(SR_CONF_CHANNEL_MODE, mode_index);
552
553 build_dynamic_panel();
554 try_resize_scroll();
555}
556
557void DeviceOptions::analog_channel_check()
558{

Callers

nothing calls this directly

Calls 1

set_config_int16Method · 0.80

Tested by

no test coverage detected