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 994ffbf commit b7d4865Copy full SHA for b7d4865
src/output_devices.rs
@@ -745,7 +745,7 @@ impl Servo {
745
746
/// Set the servo's maximum pulse width
747
pub fn set_max_pulse_width(&mut self, value: u64) {
748
- if value >= self.frame_width {
+ if value >= self.frame_width * 1000 {
749
println!("max_pulse_width must be less than frame_width");
750
} else {
751
self.max_pulse_width = value;
0 commit comments