From: Christian Weiske Date: Fri, 1 Mar 2019 14:56:03 +0000 (+0100) Subject: (no commit message) X-Git-Url: https://git.cweiske.de/paste/609.git/commitdiff_plain/refs/heads/master --- diff --git a/oms-manuf.php b/oms-manuf.php index 748c849..408334f 100644 --- a/oms-manuf.php +++ b/oms-manuf.php @@ -24,7 +24,7 @@ if (strlen($param) == 3) { . "\n"; } else if (strlen($param) == 4) { // 2 bytes as 6A49 - $fb = str_pad(decbin(hexdec('5CB0')), 16, '0', STR_PAD_LEFT); + $fb = str_pad(decbin(hexdec($param)), 16, '0', STR_PAD_LEFT); echo chr(64 + bindec(substr($fb, 1, 5))) . chr(64 + bindec(substr($fb, 6, 5))) . chr(64 + bindec(substr($fb, 11, 5)))