File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
18
18
### Fixed
19
19
- Fix the SDMMC driver for ESP-IDF V5.5+
20
+ - Replace Arc with Rc in ledc_threads example (#514 )
20
21
- Fix outdated task docs
21
22
22
23
## [ 0.45.2] - 2025-01-15
Original file line number Diff line number Diff line change 1
- use std:: { sync:: Arc , time:: Duration } ;
1
+ use std:: rc:: Rc ;
2
+ use std:: time:: Duration ;
2
3
3
4
use embedded_hal_0_2:: PwmPin ;
4
5
@@ -15,7 +16,7 @@ fn main() -> anyhow::Result<()> {
15
16
16
17
let peripherals = Peripherals :: take ( ) ?;
17
18
let config = config:: TimerConfig :: new ( ) . frequency ( 25 . kHz ( ) . into ( ) ) ;
18
- let timer = Arc :: new ( LedcTimerDriver :: new ( peripherals. ledc . timer0 , & config) ?) ;
19
+ let timer = Rc :: new ( LedcTimerDriver :: new ( peripherals. ledc . timer0 , & config) ?) ;
19
20
let channel0 = LedcDriver :: new (
20
21
peripherals. ledc . channel0 ,
21
22
timer. clone ( ) ,
You can’t perform that action at this time.
0 commit comments