| 307 | } |
| 308 | |
| 309 | bool DsoTriggerDock::check_trig_channel() |
| 310 | { |
| 311 | int id = _source_group->checkedId(); |
| 312 | bool b0 = _session->get_device()->channel_is_enable(0); |
| 313 | bool b1 = _session->get_device()->channel_is_enable(1); |
| 314 | |
| 315 | if (DSO_TRIGGER_CH0 == id && !b0){ |
| 316 | dsv_err("ERROR: The trigger channel is disabled"); |
| 317 | return false; |
| 318 | } |
| 319 | else if (DSO_TRIGGER_CH1 == id && !b1){ |
| 320 | dsv_err("ERROR: The trigger channel is disabled"); |
| 321 | return false; |
| 322 | } |
| 323 | else if (DSO_TRIGGER_CH0A1 == id && (!b0 || !b1)){ |
| 324 | dsv_err("ERROR: The trigger channel is disabled"); |
| 325 | return false; |
| 326 | } |
| 327 | |
| 328 | return true; |
| 329 | } |
| 330 | |
| 331 | void DsoTriggerDock::channel_changed(int ch) |
| 332 | { |
nothing calls this directly
no test coverage detected