Skip to content

Commit da1c886

Browse files
author
Alex J Lennon
committed
Fix: Send 'pm disp' to PMU firmware instead of 'power disp'
- PMU firmware only has 'pm' command, not 'power' command - CLI's 'power disp' command should send 'pm disp' to PMU - This fixes display power control commands
1 parent 0c9a534 commit da1c886

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/serial/protocol.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ impl Protocol {
2929
}
3030

3131
/// Execute a power control command
32+
/// Note: PMU firmware uses 'pm' command, not 'power' command
3233
pub async fn execute_power_command(&mut self, rail: &str, state: &str) -> Result<String> {
33-
let command = format!("power {} {}", rail, state);
34+
let command = format!("pm {} {}", rail, state);
3435
debug!("Executing power command: {}", command);
3536

3637
let response = self.connection.send_command(&command).await?;

0 commit comments

Comments
 (0)