diff --git a/agb/src/timer.rs b/agb/src/timer.rs index 6a953cbe..431e34e4 100644 --- a/agb/src/timer.rs +++ b/agb/src/timer.rs @@ -60,7 +60,7 @@ impl Timer { 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); self.data_register().set(count_up_value); }