mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-13 12:38:13 +08:00
Remove some garbage.
This commit is contained in:
7
dist/dfu.js
vendored
7
dist/dfu.js
vendored
@@ -214,13 +214,8 @@
|
|||||||
|
|
||||||
device.gatt.connect()
|
device.gatt.connect()
|
||||||
.then(function(gattServer) {
|
.then(function(gattServer) {
|
||||||
// Connected
|
|
||||||
server = gattServer;
|
|
||||||
if (gattServer.connected === false) {
|
|
||||||
log('not able to connect to device - ERROR');
|
|
||||||
}
|
|
||||||
log(device.uuids);
|
|
||||||
log("connected to device");
|
log("connected to device");
|
||||||
|
server = gattServer;
|
||||||
return server.getPrimaryService(serviceUUID);
|
return server.getPrimaryService(serviceUUID);
|
||||||
})
|
})
|
||||||
.then(function(primaryService) {
|
.then(function(primaryService) {
|
||||||
|
|||||||
Reference in New Issue
Block a user