Browse Source

Fix harmless compiler warning

teensy4-core
PaulStoffregen 10 years ago
parent
commit
f8eaa200b2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/DMAChannel.cpp

+ 1
- 1
teensy3/DMAChannel.cpp View File

__disable_irq(); __disable_irq();
if (!force_initialization && TCD && channel < DMA_NUM_CHANNELS if (!force_initialization && TCD && channel < DMA_NUM_CHANNELS
&& (dma_channel_allocated_mask & (1 << channel)) && (dma_channel_allocated_mask & (1 << channel))
&& (uint32_t)TCD == (0x40009000 + channel * 32)) {
&& (uint32_t)TCD == (uint32_t)(0x40009000 + channel * 32)) {
// DMA channel already allocated // DMA channel already allocated
__enable_irq(); __enable_irq();
return; return;

Loading…
Cancel
Save