Skip to content

Commit 59cef8c

Browse files
committed
Fix some methods missing their self
1 parent fa4aed4 commit 59cef8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcpwm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ where
947947
}
948948

949949
/// Set PWM frequency
950-
pub fn set_frequency(frequency: Hertz) -> Result<(), EspError> {
950+
pub fn set_frequency(&mut self, frequency: Hertz) -> Result<(), EspError> {
951951
unsafe {
952952
esp!(esp_idf_sys::mcpwm_set_frequency(
953953
U::unit(),
@@ -957,7 +957,7 @@ where
957957
}
958958
}
959959

960-
pub fn get_frequency() -> Hertz {
960+
pub fn get_frequency(&self) -> Hertz {
961961
Hertz::from(unsafe { esp_idf_sys::mcpwm_get_frequency(U::unit(), O::timer()) })
962962
}
963963
}

0 commit comments

Comments
 (0)