| 535 | } |
| 536 | |
| 537 | void 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 | |
| 557 | void DeviceOptions::analog_channel_check() |
| 558 | { |
nothing calls this directly
no test coverage detected