git.cweiske.de
/
paste
/
609.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfa37c6
)
(no commit message)
master
author
Christian Weiske
<cweiske@cweiske.de>
Fri, 1 Mar 2019 14:56:03 +0000
(15:56 +0100)
committer
www-cweiske
<www-cweiske@ahso3>
Fri, 1 Mar 2019 14:56:03 +0000
(15:56 +0100)
oms-manuf.php
patch
|
blob
|
history
diff --git
a/oms-manuf.php
b/oms-manuf.php
index 748c84973347a149d6c882cf08cb7a15a037454b..408334f69f2c4741f0dca0e63392e0b1a3596747 100644
(file)
--- a/
oms-manuf.php
+++ b/
oms-manuf.php
@@
-24,7
+24,7
@@
if (strlen($param) == 3) {
. "\n";
\r
} else if (strlen($param) == 4) {
\r
// 2 bytes as 6A49
\r
- $fb = str_pad(decbin(hexdec(
'5CB0'
)), 16, '0', STR_PAD_LEFT);
\r
+ $fb = str_pad(decbin(hexdec(
$param
)), 16, '0', STR_PAD_LEFT);
\r
echo chr(64 + bindec(substr($fb, 1, 5)))
\r
. chr(64 + bindec(substr($fb, 6, 5)))
\r
. chr(64 + bindec(substr($fb, 11, 5)))
\r