Skip to content

Commit 90b4164

Browse files
committed
dev: change name to bits
1 parent a3a8dee commit 90b4164

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

embassy-stm32/src/timer/low_level.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl<'d, T: CoreInstance> Timer<'d, T> {
236236
}
237237

238238
/// get the capability of the timer
239-
pub fn get_bits(&self) -> TimerBits {
239+
pub fn bits(&self) -> TimerBits {
240240
T::BITS
241241
}
242242

embassy-stm32/src/timer/simple_pwm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ macro_rules! impl_waveform_chx {
409409
..Default::default()
410410
};
411411

412-
match self.inner.get_bits() {
412+
match self.inner.bits() {
413413
TimerBits::Bits16 => {
414414
// the data must be aligned to double words
415415
assert!(duty.len() % 2 == 0);

0 commit comments

Comments
 (0)