mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
Merge pull request #3593 from shellixyz/revert_PR_3540
Revert "PWM driver - startup value fix"
This commit is contained in:
commit
aadf8bfb76
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ static void pwmOutConfigTimer(pwmOutputPort_t * p, const timerHardware_t *timerH
|
|||
p->ccr = timerCCR(timerHardware->tim, timerHardware->channel);
|
||||
p->period = period;
|
||||
p->tim = timerHardware->tim;
|
||||
|
||||
*p->ccr = 0;
|
||||
}
|
||||
|
||||
static pwmOutputPort_t *pwmOutConfigMotor(const timerHardware_t *timerHardware, uint8_t mhz, uint16_t period, uint16_t value, bool enableOutput)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue