chore(timer): clean up if let statement
This commit is contained in:
parent
0c843b9ca9
commit
29237f0a2c
|
@ -33,8 +33,8 @@ impl Timer {
|
||||||
let timer_enable = self.ctrl.enabled() as u8;
|
let timer_enable = self.ctrl.enabled() as u8;
|
||||||
let and_result = bit & timer_enable;
|
let and_result = bit & timer_enable;
|
||||||
|
|
||||||
if let Some(previous) = self.prev_and_result {
|
if let Some(0x01) = self.prev_and_result {
|
||||||
if previous == 0x01 && and_result == 0x00 {
|
if and_result == 0x00 {
|
||||||
// Falling Edge, increase TIMA Register
|
// Falling Edge, increase TIMA Register
|
||||||
self.increment_tima();
|
self.increment_tima();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue