瀏覽代碼

Fix fastio extra parenthesis

Alex Voinea 3 年之前
父節點
當前提交
1659f61dd5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Firmware/fastio.h

+ 1 - 1
Firmware/fastio.h

@@ -58,7 +58,7 @@
 #define	_GET_OUTPUT(IO)  ((DIO ## IO ## _DDR & MASK(DIO ## IO ## _PIN)) != 0)
 
 /// check if pin is an timer
-#define	_GET_TIMER(IO)  ((DIO ## IO ## _PWM)
+#define	_GET_TIMER(IO)  (DIO ## IO ## _PWM)
 
 //  why double up on these macros? see http://gcc.gnu.org/onlinedocs/cpp/Stringification.html