Merge pull request #7707 from mikeller/fix_hal_dshot
Fixed Dshot for hal (F7).
This commit is contained in:
commit
f9f14cafea
|
@ -229,6 +229,7 @@ void pwmDshotMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t m
|
||||||
motor->useProshot = (pwmProtocolType == PWM_TYPE_PROSHOT1000);
|
motor->useProshot = (pwmProtocolType == PWM_TYPE_PROSHOT1000);
|
||||||
#endif
|
#endif
|
||||||
motor->timerHardware = timerHardware;
|
motor->timerHardware = timerHardware;
|
||||||
|
motor->dmaRef = dmaRef;
|
||||||
|
|
||||||
TIM_TypeDef *timer = timerHardware->tim;
|
TIM_TypeDef *timer = timerHardware->tim;
|
||||||
const IO_t motorIO = IOGetByTag(timerHardware->tag);
|
const IO_t motorIO = IOGetByTag(timerHardware->tag);
|
||||||
|
|
Loading…
Reference in New Issue