mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-29 14:46:33 +08:00
chore(hid): 删除 CH9329 收发 trace 日志
This commit is contained in:
@@ -569,7 +569,6 @@ impl Ch9329Backend {
|
|||||||
port.write_all(&packet).map_err(|e| {
|
port.write_all(&packet).map_err(|e| {
|
||||||
Self::backend_error(format!("Failed to write to CH9329: {}", e), "write_failed")
|
Self::backend_error(format!("Failed to write to CH9329: {}", e), "write_failed")
|
||||||
})?;
|
})?;
|
||||||
trace!("CH9329 TX [cmd=0x{:02X}]: {:02X?}", cmd, packet);
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -624,7 +623,6 @@ impl Ch9329Backend {
|
|||||||
match port.read(&mut chunk) {
|
match port.read(&mut chunk) {
|
||||||
Ok(n) if n > 0 => {
|
Ok(n) if n > 0 => {
|
||||||
pending.extend_from_slice(&chunk[..n]);
|
pending.extend_from_slice(&chunk[..n]);
|
||||||
trace!("CH9329 RX pending: {:02X?}", pending);
|
|
||||||
|
|
||||||
while let Some((response, consumed)) = Self::try_extract_response(&pending) {
|
while let Some((response, consumed)) = Self::try_extract_response(&pending) {
|
||||||
pending.drain(..consumed);
|
pending.drain(..consumed);
|
||||||
|
|||||||
Reference in New Issue
Block a user