Skip to content

Commit c92be81

Browse files
committed
Update for new pac with write and modify not returning unit type - for G431 and friends
1 parent 41fb3c2 commit c92be81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/opamp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@ macro_rules! opamps {
333333
#[inline(always)]
334334
unsafe fn _disable_output() {
335335
(*crate::stm32::OPAMP::ptr()).[<$opampreg _csr>]().modify(|_, w|
336-
w.opaintoen().adcchannel())
336+
w.opaintoen().adcchannel());
337337
}
338338

339339
#[inline(always)]
340340
unsafe fn _enable_output() {
341341
(*crate::stm32::OPAMP::ptr()).[<$opampreg _csr>]().modify(|_, w|
342-
w.opaintoen().output_pin())
342+
w.opaintoen().output_pin());
343343
}
344344

345345
#[inline(always)]
@@ -352,7 +352,7 @@ macro_rules! opamps {
352352
// the user doesn't want anything changing if they care to set
353353
// the lock bit.
354354
(*crate::stm32::OPAMP::ptr()).[<$opampreg _tcmr>]().modify(|_, w|
355-
w.lock().set_bit())
355+
w.lock().set_bit());
356356
}
357357
}
358358

0 commit comments

Comments
 (0)