diff options
| author | Luke Hoersten <[email protected]> | 2021-03-14 14:56:33 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2021-03-14 14:56:33 -0500 |
| commit | fd413fa8d493b48353e0dda44cca7cf6e884b7ea (patch) | |
| tree | 5fe8778ebedafa56621de2e39542b2390ab6d768 /main/src/led.c | |
| parent | 3d8aaa00022d7868037c39a34ebe2c9b02abc02b (diff) | |
Fixed ping mask bug thanks to @mikedoug
Diffstat (limited to 'main/src/led.c')
| -rw-r--r-- | main/src/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/led.c b/main/src/led.c index 394577c..714e0f7 100644 --- a/main/src/led.c +++ b/main/src/led.c @@ -27,7 +27,7 @@ void intercom_led_init(uint32_t key_gpio_pin) gpio_config_t io_conf; io_conf.intr_type = GPIO_INTR_DISABLE; /* Interrupt for falling edge */ - io_conf.pin_bit_mask = 1 << key_gpio_pin; /* Bit mask of the pins */ + io_conf.pin_bit_mask = 1ULL << key_gpio_pin; /* Bit mask of the pins */ io_conf.mode = GPIO_MODE_OUTPUT; /* Set as input mode */ io_conf.pull_up_en = GPIO_PULLUP_DISABLE; /* Disable internal pull-up */ io_conf.pull_down_en = GPIO_PULLDOWN_ENABLE; /* Enable internal pull-down */ |
