diff --git a/src/libboard_artiq/src/cxp_ctrl.rs b/src/libboard_artiq/src/cxp_ctrl.rs index 0265132..9b10afe 100644 --- a/src/libboard_artiq/src/cxp_ctrl.rs +++ b/src/libboard_artiq/src/cxp_ctrl.rs @@ -24,13 +24,12 @@ fn receive(channel: u8) -> Result, Error> { (CXP_MEM[channel].base + CXP_MEM[channel].size / 2 + read_buffer_ptr * CTRL_PACKET_MAXSIZE) as *mut u32; let mut reader = Cursor::new(slice::from_raw_parts_mut(ptr as *mut u8, CTRL_PACKET_MAXSIZE)); - let packet_type = (CXP[channel].rx_packet_type_read)(); - println!("packet_type = {}", packet_type); // DEBUG: // println!("RX MEM before reading"); // print_packet(&reader.get_ref()[0..40]); - let packet = RXPacket::read_from(&mut reader, packet_type); + let packet = RXPacket::read_from(&mut reader); + // DEBUG: println!("{:X?}", packet); (CXP[channel].rx_pending_packet_write)(1);