fw-rust: Improve readability
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
791a0a0245
commit
9b7bfb0562
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ impl Lcd {
|
||||||
assert!(digits <= 3);
|
assert!(digits <= 3);
|
||||||
let mut delay = Delay::<DefaultClock>::new();
|
let mut delay = Delay::<DefaultClock>::new();
|
||||||
|
|
||||||
let mut array = [0usize; 3];
|
let mut array = [0_usize; 3];
|
||||||
for (i, item) in array.iter_mut().enumerate() {
|
for (i, item) in array.iter_mut().enumerate() {
|
||||||
*item = (((data / 10_u8.pow(i.try_into().unwrap())) % 10) + 2).into();
|
*item = (((data / 10_u8.pow(i.try_into().unwrap())) % 10) + 2).into();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue