embedded-hal icon indicating copy to clipboard operation
embedded-hal copied to clipboard

`Capture` trait requires moving/copying channel argument

Open hannobraun opened this issue 5 years ago • 0 comments
trafficstars

I think this doesn't make any sense, as it either requires Clone/Copy implementations for the channel type (which might be undesirable, as it limits the HAL design). I believe the methods should take shared or mutable references, as appropriate.

Also see #244 and and #246, which are about the same problem, but regarding the PWM trait.

hannobraun avatar Oct 01 '20 14:10 hannobraun