prepend 0 if crc is <= 16
This commit is contained in:
@@ -532,7 +532,10 @@ function getSSIDCRC(ssid) {
|
||||
|
||||
if(isNaN(crc)) crc = 0;
|
||||
}
|
||||
return crc.toString(16);
|
||||
|
||||
var out = crc.toString(16);
|
||||
if (out.length == 1) return "0" + out;
|
||||
else return out;
|
||||
}
|
||||
|
||||
function generateSSID() {
|
||||
|
||||
@@ -57,7 +57,9 @@ class WTVShared {
|
||||
if (isNaN(crc)) crc = 0;
|
||||
}
|
||||
|
||||
return crc.toString(16);
|
||||
var out = crc.toString(16);
|
||||
if (out.length == 1) return "0" + out;
|
||||
else return out;
|
||||
}
|
||||
|
||||
atob(a) {
|
||||
|
||||
Reference in New Issue
Block a user