more cleanup on usb crate

This commit is contained in:
bunnie 2024-09-22 18:48:55 +08:00
parent 1b5eacdb68
commit 6e4eec99a3
2 changed files with 1 additions and 2 deletions

View file

@ -147,7 +147,6 @@ impl TryFrom<usize> for UsbDeviceType {
}
}
pub const SERIAL_ASCII_BUFLEN: usize = 512;
pub const SERIAL_BINARY_BUFLEN: usize = 128;
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize, Clone)]
pub struct UsbSerialAscii {

View file

@ -1891,7 +1891,7 @@ pub(crate) fn main_hw() -> ! {
match xns.request_connection_blocking(ur.server_name.as_str()) {
Ok(cid) => {
observer_conn = Some(cid);
observer_op = Some(ur.listener_op_id as usize);
observer_op = Some(<u32 as From<u32>>::from(ur.listener_op_id.into()) as usize);
}
Err(e) => {
log::error!("couldn't connect to observer: {:?}", e);