diff --git a/include/DmaDriver.h b/include/DmaDriver.h index 7605c47..eddd022 100755 --- a/include/DmaDriver.h +++ b/include/DmaDriver.h @@ -616,7 +616,7 @@ static inline void dmaAddMaskBytes(uint8_t *mask, uint32_t dest) { if (dest < 8 * (DMA_MASK_SIZE)) { byte = dest / 8; bit = dest % 8; - mask[byte] |= (1 << bit); + mask[byte] += (1 << bit); } }