aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 69b3fd3..5e8cc3c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -543,7 +543,10 @@ impl From<PipeErr> for TransferError {
PipeErr::PipeErr => Self::Permanent("pipe error"),
PipeErr::HWTimeout => Self::Permanent("hardware timeout"),
PipeErr::SWTimeout => Self::Permanent("software timeout"),
- PipeErr::Other(s) => Self::Permanent(s),
+ PipeErr::PID => Self::Permanent("pid error"),
+ PipeErr::DataPID => Self::Permanent("data pid error"),
+ PipeErr::CRC16 => Self::Permanent("crc16 error"),
+ //PipeErr::Other(s) => Self::Permanent(s),
}
}
}