Skip to content

Commit

Permalink
Fix audio feedback param inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
LLeny committed Dec 17, 2024
1 parent bc1c45d commit 937e7d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mikey/timers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ impl Timers {
}
return (
true,
if is_audio!(timer.id()) {
audio.unwrap().done(timer)
if let Some(aud) = audio {
aud.done(timer)
} else {
timer.done()
});
Expand Down Expand Up @@ -244,7 +244,7 @@ impl Timers {
},
TimerReg::ControlB => self.timers[index].set_control_b(v),
TimerReg::Volume => self.audio_timer_regs[index - TIMER_COUNT].set_volume(v),
TimerReg::Feedback => self.audio_timer_regs[index - TIMER_COUNT].set_feedback(v, self.timers[index].backup()),
TimerReg::Feedback => self.audio_timer_regs[index - TIMER_COUNT].set_feedback(self.timers[index].backup(), v),
TimerReg::Output => self.audio_timer_regs[index - TIMER_COUNT].set_output(v as i8),
TimerReg::ShiftRegister => self.audio_timer_regs[index - TIMER_COUNT].set_shift_register(v),
}
Expand Down

0 comments on commit 937e7d8

Please sign in to comment.