Skip to content

Commit 144c933

Browse files
committed
fix warnings
1 parent 23acb3a commit 144c933

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/analog/adc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl Adc {
216216
}
217217

218218
pub fn oversamling_enable(&mut self) {
219-
self.rb.cfgr2.modify(|_, w| unsafe { w.ovse().set_bit() });
219+
self.rb.cfgr2.modify(|_, w| { w.ovse().set_bit() });
220220
}
221221

222222
pub fn start_injected(&mut self) {

src/timer/pwm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ macro_rules! pwm {
7171
}
7272
}
7373

74+
#[cfg(feature = "stm32g0x1")]
7475
macro_rules! pwm_hal {
7576
($($TIMX:ident:
7677
($CH:ty, $ccxe:ident, $ccmrx_output:ident, $ocxpe:ident, $ocxm:ident, $ccrx:ident, $ccrx_l:ident, $ccrx_h:ident),)+

0 commit comments

Comments
 (0)