mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_HAL_ChibiOS: catch and handle STM32_DMA_ISR_DMEIF in bdshot.
This commit is contained in:
parent
8e0f83aaae
commit
7c4d0ad9f4
@ -477,7 +477,7 @@ __RAMFUNC__ void RCOutput::dma_up_irq_callback(void *p, uint32_t flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check nothing bad happened
|
// check nothing bad happened
|
||||||
if ((flags & STM32_DMA_ISR_TEIF) != 0) {
|
if ((flags & (STM32_DMA_ISR_TEIF | STM32_DMA_ISR_DMEIF)) != 0) {
|
||||||
INTERNAL_ERROR(AP_InternalError::error_t::dma_fail);
|
INTERNAL_ERROR(AP_InternalError::error_t::dma_fail);
|
||||||
}
|
}
|
||||||
dmaStreamDisable(group->dma);
|
dmaStreamDisable(group->dma);
|
||||||
@ -510,7 +510,7 @@ __RAMFUNC__ void RCOutput::bdshot_dma_ic_irq_callback(void *p, uint32_t flags)
|
|||||||
chSysLockFromISR();
|
chSysLockFromISR();
|
||||||
|
|
||||||
// check nothing bad happened
|
// check nothing bad happened
|
||||||
if ((flags & STM32_DMA_ISR_TEIF) != 0) {
|
if ((flags & (STM32_DMA_ISR_TEIF | STM32_DMA_ISR_DMEIF)) != 0) {
|
||||||
INTERNAL_ERROR(AP_InternalError::error_t::dma_fail);
|
INTERNAL_ERROR(AP_InternalError::error_t::dma_fail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user