From b0746c538f6811a2fbf0b87e297b7f23d818fb98 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Wed, 3 Apr 2024 19:31:36 +0200 Subject: [PATCH] fix(rumble): don't perma-enable :) --- src/gcc_hid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcc_hid.rs b/src/gcc_hid.rs index 443275a..170fd3f 100644 --- a/src/gcc_hid.rs +++ b/src/gcc_hid.rs @@ -437,9 +437,9 @@ pub async fn rumble_task( pwm_ch_brake: PWM_CH6, ) { let mut rumble_config: embassy_rp::pwm::Config = Default::default(); - rumble_config.top = 0; + rumble_config.top = 255; rumble_config.enable = true; - rumble_config.compare_b = 255; + rumble_config.compare_b = 0; let mut brake_config = rumble_config.clone(); brake_config.compare_b = 255;