Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use const generics #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
one more update for embedded_hal 1.0
birkenfeld committed May 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5092b4ee506a205338eba3908824a70e2081b668
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -189,7 +189,7 @@ impl KeyRows<$size> for $Type {
use embedded_hal::digital::InputPin;
match row {
$(
$index => InputPin::is_low(&self.$row_name).map_err(drop),
$index => InputPin::is_low(&mut self.$row_name).map_err(drop),
)+
_ => unreachable!()
}