upconn fw: fix compile error

This commit is contained in:
morgan 2025-01-23 11:40:52 +08:00
parent 944709c759
commit 744fdd7040

View File

@ -86,6 +86,6 @@ fn preload_tx_packet(channel: u8, packet: &cxp_proto::TXPacket) {
println!("TX MEM after writing"); println!("TX MEM after writing");
cxp_proto::print_packet(&writer.get_ref()[0..40]); 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);
} }
} }