no pub for apply_config

This commit is contained in:
Kezi 2024-04-02 21:29:34 +02:00
parent 738726e188
commit 65e1921b65

View File

@ -239,7 +239,7 @@ impl<'d> LedcDriver<'d> {
Ok(driver) Ok(driver)
} }
pub fn apply_config(&mut self) -> Result<(), EspError> { fn apply_config(&mut self) -> Result<(), EspError> {
let channel_config = ledc_channel_config_t { let channel_config = ledc_channel_config_t {
speed_mode: self.speed_mode.into(), speed_mode: self.speed_mode.into(),
channel: self.channel as u32, channel: self.channel as u32,