Skip to content

Commit 1a9ae87

Browse files
committed
wip: panic in set_sig_gen_arbitrary if called in open mode - since we will just get PICO_BUSY
wip since docs say in some cases it is acceptable, but I have not seen it and in practice I just want to change the waveform which is definitely not possible.
1 parent 8875bff commit 1a9ae87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

streaming/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ impl PicoStreamingDevice {
696696
handle,
697697
..
698698
} => {
699-
handle
699+
panic!("cannot set_sig_gen_arbitrary while streaming ; current handle {}", handle);
700700
},
701701
};
702702

0 commit comments

Comments
 (0)