Add an increment to tcc_refcount to allow deinits to work properly
This commit is contained in:
parent
1f40f9e04f
commit
2e05f628f0
@ -181,7 +181,7 @@ pwmout_result_t common_hal_pulseio_pwmout_construct(pulseio_pwmout_obj_t* self,
|
|||||||
mux_position = j;
|
mux_position = j;
|
||||||
// Claim channel.
|
// Claim channel.
|
||||||
tcc_channels[timer->index] |= (1 << tcc_channel(timer));
|
tcc_channels[timer->index] |= (1 << tcc_channel(timer));
|
||||||
|
tcc_refcount[timer->index]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user