Fix comment in Utility.js

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2023-01-04 22:40:25 +01:00
parent 68ce3e0dbe
commit 308104f321
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

View file

@ -8,19 +8,19 @@ class Utility {
* The specifics of the algorithm is coming from the AUTOSAR CRC specification:
* https://www.autosar.org/fileadmin/user_upload/standards/classic/21-11/AUTOSAR_SWS_CRCLibrary.pdf
*
* > Utility.crc8([0x0, 0x0, 0x0, 0x0]).toString(16)
* > Utility.crc8Autosar([0x0, 0x0, 0x0, 0x0]).toString(16)
* "12"
* > Utility.crc8([0xF2, 0x01, 0x83]).toString(16)
* > Utility.crc8Autosar([0xF2, 0x01, 0x83]).toString(16)
* "c2"
* > Utility.crc8([0x0F, 0xAA, 0x00, 0x55]).toString(16)
* > Utility.crc8Autosar([0x0F, 0xAA, 0x00, 0x55]).toString(16)
* "c6"
* > Utility.crc8([0x00, 0xff, 0x55, 0x11]).toString(16)
* > Utility.crc8Autosar([0x00, 0xff, 0x55, 0x11]).toString(16)
* "77"
* > Utility.crc8([0x33, 0x22, 0x55, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff]).toString(16)
* > Utility.crc8Autosar([0x33, 0x22, 0x55, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff]).toString(16)
* "11"
* > Utility.crc8([0x92, 0x6b, 0x55]).toString(16)
* > Utility.crc8Autosar([0x92, 0x6b, 0x55]).toString(16)
* "33"
* > Utility.crc8([0xff, 0xff, 0xff, 0xff]).toString(16)
* > Utility.crc8Autosar([0xff, 0xff, 0xff, 0xff]).toString(16)
* "6c"
*
* @param {Number[]} bytes