summary history branches tags files
commit:01f8b4b6f85388ddd0e20901c4f46bdd020e4496
author:Trevor Bentley
committer:Trevor Bentley
date:Tue May 7 02:54:01 2024 +0200
parents:b47e15e42ff20b8de4fca0a32f3038c8c78678a0
don't report error status for submission packets
diff --git a/src/lib.rs b/src/lib.rs
line changes: +4/-1
index de4273d..10b1a10
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -342,7 +342,10 @@ impl UsbmonPacket {
     }
     fn status(&self) -> libc::c_int {
         let x = self.status;
-        x
+        match self.pkt_type() {
+            b'S' => 0,
+            _ => x
+        }
     }
     fn status_chr(&self) -> char {
         match self.pkt_type() {