Commit ef0d2568 authored by martin hou's avatar martin hou

转为无符号整型

parent 3c45ade5
...@@ -1267,7 +1267,7 @@ Jensen.registerHandler(BLUETOOTH_SCAN, (msg) => { ...@@ -1267,7 +1267,7 @@ Jensen.registerHandler(BLUETOOTH_SCAN, (msg) => {
} }
let mac = []; let mac = [];
for (let f = 0; f < 6; f++) { for (let f = 0; f < 6; f++) {
let m = msg.body[k++].toString(16).toUpperCase(); let m = (msg.body[k++] & 0xff).toString(16).toUpperCase();
mac.push(m.length == 1 ? '0' + m : m); mac.push(m.length == 1 ? '0' + m : m);
} }
devices.push({ devices.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment