This closes #3735
This commit is contained in:
commit
10cf41521c
|
@ -746,12 +746,14 @@ var Artemis;
|
||||||
textArr.push(String.fromCharCode(b));
|
textArr.push(String.fromCharCode(b));
|
||||||
}
|
}
|
||||||
if (code === 1 || code === 4) {
|
if (code === 1 || code === 4) {
|
||||||
// hex and must be 2 digit so they space out evenly
|
var unsignedByte = b & 0xff;
|
||||||
var s = b.toString(16);
|
|
||||||
if (s.length === 1) {
|
if (unsignedByte < 16) {
|
||||||
s = "0" + s;
|
// hex and must be 2 digit so they space out evenly
|
||||||
}
|
bytesArr.push('0' + unsignedByte.toString(16));
|
||||||
bytesArr.push(s);
|
} else {
|
||||||
|
bytesArr.push(unsignedByte.toString(16));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// just show as is without spacing out, as that is usually more used for hex than decimal
|
// just show as is without spacing out, as that is usually more used for hex than decimal
|
||||||
var s = b.toString(10);
|
var s = b.toString(10);
|
||||||
|
|
Loading…
Reference in New Issue