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

Method mode_check_timeout

DSView/pv/dialogs/deviceoptions.cpp:499–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void DeviceOptions::mode_check_timeout()
500{
501 if (_isBuilding)
502 return;
503
504 if (_device_agent->is_hardware())
505 {
506 bool test;
507 int mode;
508
509 if (_device_agent->get_config_int16(SR_CONF_OPERATION_MODE, mode)) {
510 if (mode != _opt_mode) {
511 _opt_mode = mode;
512 build_dynamic_panel();
513 try_resize_scroll();
514 }
515 }
516
517 if (_device_agent->get_config_bool(SR_CONF_TEST, test)) {
518 if (test) {
519 for (auto box : _probes_checkBox_list) {
520 box->setCheckState(Qt::Checked);
521 box->setDisabled(true);
522 }
523 }
524 }
525 }
526 else if (_device_agent->is_demo())
527 {
528 QString opt_mode = _device_agent->get_demo_operation_mode();
529 if (opt_mode != _demo_operation_mode){
530 _demo_operation_mode = opt_mode;
531 build_dynamic_panel();
532 try_resize_scroll();
533 }
534 }
535}
536
537void DeviceOptions::channel_check()
538{

Callers

nothing calls this directly

Calls 5

is_hardwareMethod · 0.80
get_config_int16Method · 0.80
get_config_boolMethod · 0.80
is_demoMethod · 0.80

Tested by

no test coverage detected