1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Updates to the way that timers are forced to overflow in oneshot mode.

Now the current count value is saved, and then passed to the listeners.  This _should_ mean that CC3D PPM might work this time.
This commit is contained in:
Ben Hitchcock 2014-12-01 22:43:17 +08:00
parent 5096873ab1
commit e9aaff808e
3 changed files with 28 additions and 3 deletions

View file

@ -154,8 +154,7 @@ void pwmFinishedWritingMotors(uint8_t numberMotors)
if(motors[index]->tim != lastTimerPtr){
lastTimerPtr = motors[index]->tim;
// Force an overflow by setting the UG bit
motors[index]->tim->EGR |= 0x0001;
timerForceOverflow(motors[index]->tim);
}
}