1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45: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

@ -59,7 +59,7 @@ void pwmWriteDigital(uint8_t index, uint16_t value)
motorDmaOutput_t * const motor = &dmaMotors[index];
if (!motor->timerHardware->dmaStream) {
if (!motor->timerHardware || !motor->timerHardware->dmaStream) {
return;
}