X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_dma_stm.c;fp=src%2Fstm%2Fao_dma_stm.c;h=93b7fb47e1da815545d843cc2ae4838e65759264;hb=785d2697376ebd20531d22441a60c41bd927b42a;hp=298a15b5ce58bdd4d67fbe69293c96d22e4dcbc3;hpb=0dec7d0885970a7d73468dd77220bae78e161b40;p=fw%2Faltos diff --git a/src/stm/ao_dma_stm.c b/src/stm/ao_dma_stm.c index 298a15b5..93b7fb47 100644 --- a/src/stm/ao_dma_stm.c +++ b/src/stm/ao_dma_stm.c @@ -64,7 +64,7 @@ ao_dma_set_transfer(uint8_t index, if (ao_dma_allocated[index]) { if (ao_dma_mutex[index]) ao_panic(AO_PANIC_DMA); - ao_dma_mutex[index] = 1; + ao_dma_mutex[index] = 0xff; } else ao_mutex_get(&ao_dma_mutex[index]); ao_arch_critical(