File tree 1 file changed +5
-12
lines changed
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -180,9 +180,7 @@ impl<'a> EraseSequence<'a> {
180
180
feature = "stm32f778" ,
181
181
feature = "stm32f779" ,
182
182
) ) ]
183
- w
184
- . mer1 ( ) . clear_bit ( )
185
- . mer2 ( ) . clear_bit ( ) ;
183
+ w. mer1 ( ) . clear_bit ( ) . mer2 ( ) . clear_bit ( ) ;
186
184
#[ cfg( not( any(
187
185
feature = "stm32f765" ,
188
186
feature = "stm32f767" ,
@@ -192,9 +190,7 @@ impl<'a> EraseSequence<'a> {
192
190
feature = "stm32f779" ,
193
191
) ) ) ]
194
192
w. mer ( ) . clear_bit ( ) ;
195
- w
196
- . ser ( ) . set_bit ( )
197
- . snb ( ) . bits ( sector_number)
193
+ w. ser ( ) . set_bit ( ) . snb ( ) . bits ( sector_number)
198
194
} ) ;
199
195
flash. registers . cr . modify ( |_, w| w. strt ( ) . start ( ) ) ;
200
196
@@ -215,9 +211,7 @@ impl<'a> EraseSequence<'a> {
215
211
feature = "stm32f778" ,
216
212
feature = "stm32f779" ,
217
213
) ) ]
218
- w
219
- . mer1 ( ) . set_bit ( )
220
- . mer2 ( ) . set_bit ( ) ;
214
+ w. mer1 ( ) . set_bit ( ) . mer2 ( ) . set_bit ( ) ;
221
215
#[ cfg( not( any(
222
216
feature = "stm32f765" ,
223
217
feature = "stm32f767" ,
@@ -227,10 +221,9 @@ impl<'a> EraseSequence<'a> {
227
221
feature = "stm32f779" ,
228
222
) ) ) ]
229
223
w. mer ( ) . clear_bit ( ) ;
230
- w
231
- . ser ( ) . clear_bit ( )
224
+ w. ser ( ) . clear_bit ( )
232
225
} ) ;
233
-
226
+
234
227
flash. registers . cr . modify ( |_, w| w. strt ( ) . start ( ) ) ;
235
228
236
229
Ok ( Self { flash } )
You can’t perform that action at this time.
0 commit comments