mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Mixer protection for not enough motors initialised
This commit is contained in:
parent
638ed22fa8
commit
a7f50ad30a
4 changed files with 15 additions and 4 deletions
|
@ -61,7 +61,7 @@ void pwmWriteDigital(uint8_t index, uint16_t value)
|
|||
|
||||
motorDmaOutput_t * const motor = &dmaMotors[index];
|
||||
|
||||
if (!motor->timerHardware->dmaChannel) {
|
||||
if (!motor->timerHardware || !motor->timerHardware->dmaChannel) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue