Skip to content

Commit

Permalink
Make readPin output a 0 or 1 when using AVR to match ChibiOS's vers…
Browse files Browse the repository at this point in the history
…ion of `readPin`
  • Loading branch information
nooges authored and drashna committed Dec 19, 2018
1 parent 3054c7b commit 40bf3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/quantum.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40bf3a2

Please sign in to comment.