Skip to content

Commit 2e2eddf

Browse files
committed
fix: GPIO IRQ argument order
1 parent 5c0f025 commit 2e2eddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int main(void) {
198198

199199
// Falling edges increase the edge count.
200200
::gpio_set_irq_enabled_with_callback(
201-
PIN_SWITCH, 0, GPIO_IRQ_EDGE_FALL,
201+
PIN_SWITCH, GPIO_IRQ_EDGE_FALL, true,
202202
[](uint, uint32_t) {
203203
const auto now = ::get_absolute_time();
204204
const auto diff = ::absolute_time_diff_us(last_edge_time, now);

0 commit comments

Comments
 (0)