diff --git a/index.html b/index.html index 88c0493..a1c95d5 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,9 @@ web-bluetooth-dfu - - + + +
@@ -58,7 +59,6 @@ function setMode() { dfu.findDevice({ services: [0x180D] }) .then(device => dfu.writeMode(device)) - .then(device => transfer(device)) .catch(log); } @@ -68,6 +68,13 @@ .catch(log); } + function both() { + dfu.findDevice({ services: [0x180D] }) + .then(device => dfu.writeMode(device)) + .then(device => transfer(device)) + .catch(log); + } +