浏览代码

Fix misplaced parentheses (#12284)

Karl Andersson 6 年前
父节点
当前提交
484ca68228
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/HAL/HAL_STM32/fastio_STM32.h

+ 1
- 1
Marlin/src/HAL/HAL_STM32/fastio_STM32.h 查看文件

52
     else   FastIOPortMap[STM_PORT(digitalPin[IO])]->BRR  = _BV32(STM_PIN(digitalPin[IO])) ; \
52
     else   FastIOPortMap[STM_PORT(digitalPin[IO])]->BRR  = _BV32(STM_PIN(digitalPin[IO])) ; \
53
   } while(0)
53
   } while(0)
54
 #else
54
 #else
55
-  #define _WRITE(IO, V) (FastIOPortMap[STM_PORT(digitalPin[IO])]->BSRR = _BV32(STM_PIN(digitalPin[IO] + (V ? 0 : 16))))
55
+  #define _WRITE(IO, V) (FastIOPortMap[STM_PORT(digitalPin[IO])]->BSRR = _BV32(STM_PIN(digitalPin[IO]) + (V ? 0 : 16)))
56
 #endif
56
 #endif
57
 
57
 
58
 #define _READ(IO)               bool(READ_BIT(FastIOPortMap[STM_PORT(digitalPin[IO])]->IDR, _BV32(STM_PIN(digitalPin[IO]))))
58
 #define _READ(IO)               bool(READ_BIT(FastIOPortMap[STM_PORT(digitalPin[IO])]->IDR, _BV32(STM_PIN(digitalPin[IO]))))

正在加载...
取消
保存