ソースを参照

Fix STM32 _WRITE macro parameter (#17121)

BigTreeTech 4年前
コミット
8bad6e11e2
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      Marlin/src/HAL/HAL_STM32/fastio.h

+ 1
- 1
Marlin/src/HAL/HAL_STM32/fastio.h ファイルの表示

@@ -55,7 +55,7 @@ void FastIO_init(); // Must be called before using fast io macros
55 55
     else   FastIOPortMap[STM_PORT(digitalPin[IO])]->BRR  = _BV32(STM_PIN(digitalPin[IO])) ; \
56 56
   }while(0)
57 57
 #else
58
-  #define _WRITE(IO, V) (FastIOPortMap[STM_PORT(digitalPin[IO])]->BSRR = _BV32(STM_PIN(digitalPin[IO]) + (V ? 0 : 16)))
58
+  #define _WRITE(IO, V) (FastIOPortMap[STM_PORT(digitalPin[IO])]->BSRR = _BV32(STM_PIN(digitalPin[IO]) + ((V) ? 0 : 16)))
59 59
 #endif
60 60
 
61 61
 #define _READ(IO)               bool(READ_BIT(FastIOPortMap[STM_PORT(digitalPin[IO])]->IDR, _BV32(STM_PIN(digitalPin[IO]))))

読み込み中…
キャンセル
保存