Minor fix
This commit is contained in:
parent
11fd1850e8
commit
b6622bdef3
4
core.js
4
core.js
@ -399,8 +399,8 @@ async function ds4_getbdaddr() {
|
||||
|
||||
async function ds5_getbdaddr() {
|
||||
try {
|
||||
await lf("ds5_getbdaddr", device.sendFeatureReport(0x80, alloc_req(0x80, [9,2])))
|
||||
data = await device.receiveFeatureReport(0x81);
|
||||
await device.sendFeatureReport(0x80, alloc_req(0x80, [9,2]));
|
||||
data = lf("ds5_getbdaddr", await device.receiveFeatureReport(0x81));
|
||||
out = ""
|
||||
for(i=0;i<6;i++) {
|
||||
if(i >= 1) out += ":";
|
||||
|
Loading…
x
Reference in New Issue
Block a user