forked from M-Labs/artiq-zynq
upconn fw: fix compile error
This commit is contained in:
parent
944709c759
commit
744fdd7040
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user