Skip to content

Commit

Permalink
function fix
Browse files Browse the repository at this point in the history
  • Loading branch information
21km43 committed Sep 28, 2024
1 parent 509a30b commit 8a52255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ impl ProbeSession {
}

pub fn set_3v3_output_enabled(&mut self, enable: bool) -> Result<()> {
if !probe.info.variant.support_power_funcs() {
if !self.probe.info.variant.support_power_funcs() {
return Err(Error::Custom(
"Probe doesn't support power control".to_string(),
));
Expand All @@ -348,7 +348,7 @@ impl ProbeSession {
}

pub fn set_5v_output_enabled(&mut self, enable: bool) -> Result<()> {
if !probe.info.variant.support_power_funcs() {
if !self.probe.info.variant.support_power_funcs() {
return Err(Error::Custom(
"Probe doesn't support power control".to_string(),
));
Expand Down

0 comments on commit 8a52255

Please sign in to comment.