From 8fd7bef85dd2e5cbb2cfa439b400d02d2b0dd74d Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Wed, 11 Oct 2023 12:23:14 -0600 Subject: [PATCH] fix ppl --- src/device/controller.rs | 2 +- src/device/pif.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/device/controller.rs b/src/device/controller.rs index b9f3da7..e5c0248 100644 --- a/src/device/controller.rs +++ b/src/device/controller.rs @@ -49,7 +49,7 @@ pub fn process(device: &mut device::Device, channel: usize) { device.pif.channels[channel].tx_buf.unwrap() + 3, device.pif.channels[channel].rx_buf.unwrap(), ), - _ => panic!("unknown controller command"), + _ => println!("unknown controller command {}", cmd), } } diff --git a/src/device/pif.rs b/src/device/pif.rs index 94fb25e..b38f0d0 100644 --- a/src/device/pif.rs +++ b/src/device/pif.rs @@ -150,9 +150,8 @@ pub fn setup_channels_format(device: &mut device::Device) { 0xfd => { /* channel reset - send reset command and discard the results */ - { - panic!("channel reset") - } + k += 1; + i += 1; } _ => {