Skip to content

Commit 212e06c

Browse files
author
dbaba
committed
Fix an issue where connectPeripheral() failed to return a value
1 parent f336670 commit 212e06c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/generic-ble.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ module.exports = function (RED) {
489489
break;
490490
}
491491
}
492+
return peripheral.state;
492493
}
493494
async disconnectPeripheral() {
494495
debugCfg(

0 commit comments

Comments
 (0)