summaryrefslogtreecommitdiffstats
path: root/quantum/quantum.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r--quantum/quantum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h
index a2c0ec9a28..0e452a062d 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -213,7 +213,7 @@ typedef ioline_t pin_t;
# define writePinHigh(pin) palSetLine(pin)
# define writePinLow(pin) palClearLine(pin)
-# define writePin(pin, level) ((level) ? writePinHigh(pin) : writePinLow(pin))
+# define writePin(pin, level) ((level) ? (writePinHigh(pin)) : (writePinLow(pin)))
# define readPin(pin) palReadLine(pin)