File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ fn main() -> ! {
55
55
let pin_a = gpioa. pa8 ;
56
56
57
57
let dac1ch1 = dp. DAC1 . constrain ( dac:: Dac1IntSig1 , & mut rcc) ;
58
- let mut dac = dac1ch1. calibrate_buffer ( & mut delay) . enable ( ) ;
58
+ let mut dac = dac1ch1. calibrate_buffer ( & mut delay) . enable ( & mut rcc ) ;
59
59
60
60
// Use dac to define the fault threshold
61
61
// 2^12 / 2 = 2^11 for about half of VCC
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ fn main() -> ! {
61
61
let gpioc = dp. GPIOC . split ( & mut rcc) ;
62
62
63
63
let dac3ch1 = dp. DAC3 . constrain ( Dac3IntSig1 , & mut rcc) ;
64
- let mut dac = dac3ch1. enable ( ) ;
64
+ let mut dac = dac3ch1. enable ( & mut rcc ) ;
65
65
66
66
// Use dac to define the fault threshold
67
67
// 2^12 / 2 = 2^11 for about half of VCC
You can’t perform that action at this time.
0 commit comments