#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sun, 17 Mar 2019 01:12:25 +0100
changeset 4862 461bb4a4a396
parent 4861 7a69e6afd632
child 4863 41d689a13dda
#REFACTORING by cg class: CRC16Stream class changed: #newCCITT
CRC16Stream.st
--- a/CRC16Stream.st	Sun Mar 17 00:00:38 2019 +0100
+++ b/CRC16Stream.st	Sun Mar 17 01:12:25 2019 +0100
@@ -165,10 +165,10 @@
         x16 + x13 + x12 + x11 + x10 + x8 + x6 + x5 + x2 + 1 "
 
     "/ 16r1021 bitReversed16 => 16r8408
-    ^ self generatorPolynomMSB:16r1021 initValue:16rFFFF xorOut:0
+    ^ self generatorPolynomMSB:16r1021 initValue:16rffff xorOut:16rFFFF
 
     "Created: / 16-03-2019 / 21:13:11 / Claus Gittinger"
-    "Modified: / 16-03-2019 / 23:50:58 / Claus Gittinger"
+    "Modified: / 17-03-2019 / 00:37:40 / Claus Gittinger"
 !
 
 newDNP