Made keyInfo vars const
This commit is contained in:
parent
d0ee1a7044
commit
7bc5a3530c
@ -121,8 +121,8 @@ class PacketStreamFactory extends Transform{
|
|||||||
newPacket = new HandshakePacket();
|
newPacket = new HandshakePacket();
|
||||||
|
|
||||||
// Read key-information
|
// Read key-information
|
||||||
let keyInfoRaw = (packet.payloadData[0x5]<<0x8) + packet.payloadData[0x6];
|
const keyInfoRaw = (packet.payloadData[0x5]<<0x8) + packet.payloadData[0x6];
|
||||||
let keyInfo = {
|
const keyInfo = {
|
||||||
"KeyDescriptorVersion": keyInfoRaw>>0 & 0b111,
|
"KeyDescriptorVersion": keyInfoRaw>>0 & 0b111,
|
||||||
"KeyType": keyInfoRaw>>3 & 0b1,
|
"KeyType": keyInfoRaw>>3 & 0b1,
|
||||||
"KeyIndex": keyInfoRaw>>4 & 0b11,
|
"KeyIndex": keyInfoRaw>>4 & 0b11,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user