瀏覽代碼

Fix harmless compiler warning

main
PaulStoffregen 10 年之前
父節點
當前提交
f8eaa200b2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      teensy3/DMAChannel.cpp

+ 1
- 1
teensy3/DMAChannel.cpp 查看文件

@@ -11,7 +11,7 @@ void DMAChannel::begin(bool force_initialization)
__disable_irq();
if (!force_initialization && TCD && channel < DMA_NUM_CHANNELS
&& (dma_channel_allocated_mask & (1 << channel))
&& (uint32_t)TCD == (0x40009000 + channel * 32)) {
&& (uint32_t)TCD == (uint32_t)(0x40009000 + channel * 32)) {
// DMA channel already allocated
__enable_irq();
return;

Loading…
取消
儲存