aboutsummaryrefslogtreecommitdiffstats
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 0faf1af29..f78915fdf 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -161,7 +161,7 @@ extern uint32_t default_layer_state;
}
}
- #define readPin(pin) (PIN_ADDRESS(pin, 0) & _BV(pin & 0xF))
+ #define readPin(pin) ((bool)(PIN_ADDRESS(pin, 0) & _BV(pin & 0xF)))
#elif defined(PROTOCOL_CHIBIOS)
#define pin_t ioline_t
#define setPinInput(pin) palSetLineMode(pin, PAL_MODE_INPUT)