File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ mod app {
3939 timer. listen ( ) ;
4040
4141 let mut exti = ctx. device . EXTI ;
42- gpioa. pa2 . into_pull_up_input ( ) . listen ( SignalEdge :: Falling , & mut exti) ;
42+ gpioa
43+ . pa2
44+ . into_pull_up_input ( )
45+ . listen ( SignalEdge :: Falling , & mut exti) ;
4346
4447 let mut rtc = ctx. device . RTC . constrain ( & mut rcc) ;
4548 rtc. set_date ( & Date :: new ( 2019 . year ( ) , 11 . month ( ) , 24 . day ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ mod app {
3434
3535 let gpioa = ctx. device . GPIOA . split ( & mut rcc) ;
3636 let led = gpioa. pa15 . into_push_pull_output ( ) ;
37- let mut button = gpioa. pa2 . into_pull_up_input ( ) . listen ( SignalEdge :: Falling , & mut exti) ;
37+ let mut button = gpioa
38+ . pa2
39+ . into_pull_up_input ( )
40+ . listen ( SignalEdge :: Falling , & mut exti) ;
3841
3942 let mut power = ctx. device . PWR . constrain ( & mut rcc) ;
4043 power. set_mode ( PowerMode :: UltraLowPower ( LowPowerMode :: StopMode2 ) ) ;
You can’t perform that action at this time.
0 commit comments