diff options
author | Jason Chestnut <jason.chestnut@gmail.com> | 2020-09-28 08:24:51 -0400 |
---|---|---|
committer | Jason Chestnut <jason.chestnut@gmail.com> | 2020-09-28 08:24:51 -0400 |
commit | c2a861c0e6a731fd92368768a9b07d5feac7d374 (patch) | |
tree | 3690ba36f80340e2091adb562f1b2fb24f942f12 | |
parent | 9392c4f9ffbe815a44d007cf85a2a17955f46edb (diff) |
Modify preprocessor directives to use basic #if !defined() rather than Zephyr macros where appropriate.
-rw-r--r-- | app/drivers/zephyr/kscan_gpio_matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/drivers/zephyr/kscan_gpio_matrix.c b/app/drivers/zephyr/kscan_gpio_matrix.c index b940c6d..5fa618b 100644 --- a/app/drivers/zephyr/kscan_gpio_matrix.c +++ b/app/drivers/zephyr/kscan_gpio_matrix.c @@ -31,7 +31,7 @@ struct kscan_gpio_item_config { #define _KSCAN_GPIO_ROW_CFG_INIT(idx, n) _KSCAN_GPIO_ITEM_CFG_INIT(n, row_gpios, idx) #define _KSCAN_GPIO_COL_CFG_INIT(idx, n) _KSCAN_GPIO_ITEM_CFG_INIT(n, col_gpios, idx) -#ifdef CONFIG_ZMK_KSCAN_MATRIX_POLLING +#if !defined(CONFIG_ZMK_KSCAN_MATRIX_POLLING) static int kscan_gpio_config_interrupts(struct device **devices, const struct kscan_gpio_item_config *configs, size_t len, gpio_flags_t flags) { |