camera_capture: use up_input_capture_set directly

It reserves the channel and pwm_out will not use it
This commit is contained in:
Beat Küng
2021-09-08 16:10:24 -04:00
committed by Daniel Agar
parent 78b5cdae4c
commit 062dd28f4d
7 changed files with 55 additions and 130 deletions
@@ -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);
}