refactor: 📦 Fix new clippy errors
This commit is contained in:
parent
227761c575
commit
0cc683a50f
|
@ -221,7 +221,7 @@ impl<State> Pin<State> {
|
|||
self.registers.PUDCLK[bank].modify(FieldValue::<u32, ()>::new(
|
||||
0b1,
|
||||
off,
|
||||
if pull == PullUpDown::Up { 1 } else { 0 },
|
||||
(pull == PullUpDown::Up).into(),
|
||||
));
|
||||
|
||||
loop_delay(2000);
|
||||
|
|
|
@ -461,7 +461,7 @@ impl<const N_SLOTS: usize, Storage: MailboxStorage + MailboxStorageRef> Mailbox<
|
|||
buf[index + 1] = 8; // Buffer size // val buf size
|
||||
buf[index + 2] = 0; // Response size // val size
|
||||
buf[index + 3] = 130; // Pin Number
|
||||
buf[index + 4] = if enable { 1 } else { 0 };
|
||||
buf[index + 4] = enable.into();
|
||||
index + 5
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue