From 744fdd7040eb1a1cbe922101830380eee85d24a0 Mon Sep 17 00:00:00 2001 From: morgan Date: Thu, 23 Jan 2025 11:40:52 +0800 Subject: [PATCH] upconn fw: fix compile error --- src/libboard_artiq/src/cxp_upconn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libboard_artiq/src/cxp_upconn.rs b/src/libboard_artiq/src/cxp_upconn.rs index 17b928f..e555b71 100644 --- a/src/libboard_artiq/src/cxp_upconn.rs +++ b/src/libboard_artiq/src/cxp_upconn.rs @@ -86,6 +86,6 @@ fn preload_tx_packet(channel: u8, packet: &cxp_proto::TXPacket) { println!("TX MEM after writing"); cxp_proto::print_packet(&writer.get_ref()[0..40]); - (CXP[channel].tx_writer_word_len_write)(writer.position() as u16 / 4); + (CXP[channel].tx_writer_word_len_write)((writer.position() / 4) as u8); } }