1
0
Fork 0
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:
blckmn 2017-01-30 10:59:38 +11:00 committed by borisbstyle
parent 638ed22fa8
commit a7f50ad30a
4 changed files with 15 additions and 4 deletions

View file

@ -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;
}