We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c0f025 commit 2e2eddfCopy full SHA for 2e2eddf
src/main.cpp
@@ -198,7 +198,7 @@ int main(void) {
198
199
// Falling edges increase the edge count.
200
::gpio_set_irq_enabled_with_callback(
201
- PIN_SWITCH, 0, GPIO_IRQ_EDGE_FALL,
+ PIN_SWITCH, GPIO_IRQ_EDGE_FALL, true,
202
[](uint, uint32_t) {
203
const auto now = ::get_absolute_time();
204
const auto diff = ::absolute_time_diff_us(last_edge_time, now);
0 commit comments