forked from NaxdyOrg/NaxGCC-FW
fix(rumble): don't perma-enable :)
This commit is contained in:
parent
bf73aa6f23
commit
b0746c538f
1 changed files with 2 additions and 2 deletions
|
@ -437,9 +437,9 @@ pub async fn rumble_task(
|
||||||
pwm_ch_brake: PWM_CH6,
|
pwm_ch_brake: PWM_CH6,
|
||||||
) {
|
) {
|
||||||
let mut rumble_config: embassy_rp::pwm::Config = Default::default();
|
let mut rumble_config: embassy_rp::pwm::Config = Default::default();
|
||||||
rumble_config.top = 0;
|
rumble_config.top = 255;
|
||||||
rumble_config.enable = true;
|
rumble_config.enable = true;
|
||||||
rumble_config.compare_b = 255;
|
rumble_config.compare_b = 0;
|
||||||
|
|
||||||
let mut brake_config = rumble_config.clone();
|
let mut brake_config = rumble_config.clone();
|
||||||
brake_config.compare_b = 255;
|
brake_config.compare_b = 255;
|
||||||
|
|
Loading…
Reference in a new issue