mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-12 01:51:34 +11:00
set overflow amount should take a mut self
This commit is contained in:
parent
20511843ca
commit
8ef46279c8
|
@ -60,7 +60,7 @@ impl<const N: usize> Timer<N> {
|
||||||
Self {}
|
Self {}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_overflow_amount(&self, n: u16) {
|
pub fn set_overflow_amount(&mut self, n: u16) {
|
||||||
let count_up_value = 0u16.wrapping_sub(n);
|
let count_up_value = 0u16.wrapping_sub(n);
|
||||||
self.data_register().set(count_up_value);
|
self.data_register().set(count_up_value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue