qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

commit 40bf3a2ce9ec781cc2ff7218f909ffdbece44e97
parent 3054c7bda0dc68723f6402f9175ee11758ffc1b8
Author: Danny Nguyen <danny@keeb.io>
Date:   Tue, 18 Dec 2018 16:17:29 -0500

Make `readPin` output a 0 or 1 when using AVR to match ChibiOS's version of `readPin`

Diffstat:
quantum/quantum.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)