mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Mask PWM during beep
This commit is contained in:
@@ -252,7 +252,11 @@ bool tryBetterPWM(uint8_t pwm) {
|
|||||||
}
|
}
|
||||||
void setTipPWM(uint8_t pulse) {
|
void setTipPWM(uint8_t pulse) {
|
||||||
// We can just set the timer directly
|
// We can just set the timer directly
|
||||||
htim3.Instance->CCR1 = pulse;
|
if (htim3.Instance->PSC > 20) {
|
||||||
|
htim3.Instance->CCR1 = 0;
|
||||||
|
} else {
|
||||||
|
htim3.Instance->CCR1 = pulse;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void unstick_I2C() {
|
void unstick_I2C() {
|
||||||
|
|||||||
Reference in New Issue
Block a user