We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329d5cb commit 9d65b33Copy full SHA for 9d65b33
examples/mcpwm-simple.rs
@@ -82,7 +82,7 @@ fn main() -> anyhow::Result<()> {
82
let duty = f32::from(x) * 0.01;
83
84
if x % 100 == 0 {
85
- println!("Duty {}%", duty);
+ println!("Duty {}%", x / 100);
86
}
87
88
operator.set_duty_a(duty)?;
0 commit comments