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; } _ => {