Skip to content

Commit

Permalink
probe
Browse files Browse the repository at this point in the history
  • Loading branch information
21km43 committed Sep 28, 2024
1 parent 4f1b85e commit fc63fc3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,11 @@ impl ProbeSession {
}

if enable {
self.send_command(commands::control::SetPower::Enable3V3)?;
self.probe
.send_command(commands::control::SetPower::Enable3V3)?;
} else {
self.send_command(commands::control::SetPower::Disable3V3)?;
self.probe
.send_command(commands::control::SetPower::Disable3V3)?;
}

Ok(())
Expand All @@ -355,9 +357,11 @@ impl ProbeSession {
}

if enable {
self.send_command(commands::control::SetPower::Enable5V)?;
self.probe
.send_command(commands::control::SetPower::Enable5V)?;
} else {
self.send_command(commands::control::SetPower::Disable5V)?;
self.probe
.send_command(commands::control::SetPower::Disable5V)?;
}

Ok(())
Expand Down

0 comments on commit fc63fc3

Please sign in to comment.