1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-19 00:29:49 +00:00
This commit is contained in:
Silent YANG 2024-02-05 05:00:05 +08:00
parent b5a1a4c25c
commit e918afc150

View file

@ -995,6 +995,9 @@ function uint8ArrayToHexReverseString(uint8Array) {
}
function hexReverseStringToUint8Array(hexReverseString) {
if(hexReverseString.length % 2 !== 0){
hexReverseString = "0" + hexReverseString
}
const packet = new Uint8Array(hexReverseString.length / 2);
let offset = 0;
[...(hexReverseString.matchAll(/[0-9a-f]{2}/g))].reverse().map(e => {