mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 14:03:34 +08:00
Add IO timer channel mode for RPM and also sync up rpi configuration to work with all these drivers
This commit is contained in:
@@ -77,7 +77,7 @@ bool RPMCapture::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
int ret = io_timer_allocate_channel(_channel, IOTimerChanMode_Other); // TODO: add IOTimerChanMode_RPM
|
||||
int ret = io_timer_allocate_channel(_channel, IOTimerChanMode_RPM);
|
||||
|
||||
if (ret != PX4_OK) {
|
||||
PX4_ERR("gpio alloc failed (%i) for RPM at channel (%d)", ret, _channel);
|
||||
|
||||
Reference in New Issue
Block a user