mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 12:50:37 +00:00
Run cargo fmt
This commit is contained in:
parent
fb21fcf4f1
commit
1f87e47831
@ -336,14 +336,14 @@ impl From<DummyCycles> for u8 {
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum SampleShifting {
|
||||
None,
|
||||
HalfCycle
|
||||
HalfCycle,
|
||||
}
|
||||
|
||||
impl From<SampleShifting> for bool {
|
||||
fn from(value: SampleShifting) -> Self {
|
||||
match value {
|
||||
SampleShifting::None => false,
|
||||
SampleShifting::HalfCycle => true
|
||||
SampleShifting::HalfCycle => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ impl Default for Config {
|
||||
prescaler: 128,
|
||||
fifo_threshold: FIFOThresholdLevel::_17Bytes,
|
||||
cs_high_time: ChipSelectHighTime::_5Cycle,
|
||||
sample_shifting: SampleShifting::None
|
||||
sample_shifting: SampleShifting::None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user