diff options
| author | Brian Schwind <[email protected]> | 2025-10-04 13:21:55 +0900 |
|---|---|---|
| committer | Brian Schwind <[email protected]> | 2025-10-04 16:52:20 +0900 |
| commit | 2ecb06bf9b7d59ec85793228fefa01c70f3c432c (patch) | |
| tree | a203e6560e4d4fd3aba3b28fdce23c4604a675a3 | |
| parent | ed527e659e0e5d729f9d0ee2f6f15019a144b68a (diff) | |
hspi: use a named enum variant in place of a literal zero
| -rw-r--r-- | embassy-stm32/src/hspi/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/hspi/mod.rs b/embassy-stm32/src/hspi/mod.rs index 95d9e5099..277f69496 100644 --- a/embassy-stm32/src/hspi/mod.rs +++ b/embassy-stm32/src/hspi/mod.rs | |||
| @@ -391,7 +391,7 @@ impl<'d, T: Instance, M: PeriMode> Hspi<'d, T, M> { | |||
| 391 | while T::REGS.sr().read().busy() {} | 391 | while T::REGS.sr().read().busy() {} |
| 392 | 392 | ||
| 393 | T::REGS.cr().modify(|w| { | 393 | T::REGS.cr().modify(|w| { |
| 394 | w.set_fmode(0.into()); | 394 | w.set_fmode(FunctionalMode::IndirectWrite.into()); |
| 395 | }); | 395 | }); |
| 396 | 396 | ||
| 397 | // Configure alternate bytes | 397 | // Configure alternate bytes |
