mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-11 02:59:09 +00:00
Make readPin
output a 0 or 1 when using AVR to match ChibiOS's version of readPin
This commit is contained in:
parent
3054c7bda0
commit
40bf3a2ce9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
#elif defined(PROTOCOL_CHIBIOS)
|
||||||
#define pin_t ioline_t
|
#define pin_t ioline_t
|
||||||
#define setPinInput(pin) palSetLineMode(pin, PAL_MODE_INPUT)
|
#define setPinInput(pin) palSetLineMode(pin, PAL_MODE_INPUT)
|
||||||
|
|
Loading…
Reference in a new issue