More precise debug output.
This commit is contained in:
parent
d5651e96bb
commit
245740febc
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ impl Command {
|
|||
/// Encode len for Lc field
|
||||
fn make_lc(len: u16, ext_len: bool) -> Vec<u8> {
|
||||
if !ext_len {
|
||||
assert!(len <= 0xff, "unexpected: len > 0xff, but ext says Short");
|
||||
assert!(
|
||||
len <= 0xff,
|
||||
"unexpected: len = {:x?}, but ext says Short",
|
||||
len
|
||||
);
|
||||
}
|
||||
|
||||
if len == 0 {
|
||||
|
|
Loading…
Reference in a new issue