diff options
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r-- | quantum/quantum.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index c839a43dba..2c06578652 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -222,7 +222,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) |