diff --git a/src/processor/memory/mmio/apu/channels.rs b/src/processor/memory/mmio/apu/channels.rs index afd98c0..f18d483 100644 --- a/src/processor/memory/mmio/apu/channels.rs +++ b/src/processor/memory/mmio/apu/channels.rs @@ -268,7 +268,7 @@ impl PwmChannel { } pub(super) fn get_control(&self) -> u8 { - set_or_clear_bit(0, 6, self.length_enable) + set_or_clear_bit(0xFF, 6, self.length_enable) } fn set_wave_timer(&mut self) {