mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:08:52 +08:00
camera_capture: use up_input_capture_set directly
It reserves the channel and pwm_out will not use it
This commit is contained in:
@@ -56,7 +56,7 @@ CameraInterfaceGPIO::~CameraInterfaceGPIO()
|
||||
unsigned channel = 0;
|
||||
|
||||
while (_allocated_channels != 0) {
|
||||
if (((1 << channel) & _allocated_channels)) {
|
||||
if (((1u << channel) & _allocated_channels)) {
|
||||
io_timer_unallocate_channel(channel);
|
||||
_allocated_channels &= ~(1u << channel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user