fix for byte-to-2hex re: https://github.com/dballard/cl-pack/issues/5
This commit is contained in:
parent
6c633925df
commit
b6853477a4
|
@ -290,7 +290,7 @@
|
||||||
|
|
||||||
(defun byte-to-2hex (byte)
|
(defun byte-to-2hex (byte)
|
||||||
"Turn a byte into a string of 2 hex characters"
|
"Turn a byte into a string of 2 hex characters"
|
||||||
(format nil "~2,0X" byte))
|
(format nil "~2,'0X" byte))
|
||||||
|
|
||||||
(defun byte-to-2hex-rev (byte)
|
(defun byte-to-2hex-rev (byte)
|
||||||
(reverse (byte-to-2hex byte)))
|
(reverse (byte-to-2hex byte)))
|
||||||
|
|
Loading…
Reference in New Issue