Skip to content

Commit

Permalink
ADIS16470: Enable DRDY interrupt
Browse files Browse the repository at this point in the history
The call to px4_arch_gpiosetevent didn't set the "event" flag to "true".
Some platforms just ignore this flag and always enable the event, which
is the reason that this happened to work on those.

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Dec 11, 2024
1 parent 956df84 commit 144086f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ bool ADIS16470::DataReadyInterruptConfigure()
}

// Setup data ready on falling edge
return px4_arch_gpiosetevent(_drdy_gpio, false, true, false, &DataReadyInterruptCallback, this) == 0;
return px4_arch_gpiosetevent(_drdy_gpio, false, true, true, &DataReadyInterruptCallback, this) == 0;
}

bool ADIS16470::DataReadyInterruptDisable()
Expand Down

0 comments on commit 144086f

Please sign in to comment.