mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-13 20:48:15 +08:00
Switched to using eslint
This commit is contained in:
@@ -30,10 +30,10 @@ switch(deviceType) {
|
||||
dfu.findDevice({ services: [0x180D] })
|
||||
.then(device => {
|
||||
fileName = fileMask.replace("{0}", device.name === "Hi_Rob" ? "bye" : "hi");
|
||||
log("found device: " + device.name);
|
||||
log("found device: " + device.name);
|
||||
log("using file name: " + fileName);
|
||||
|
||||
return dfu.writeMode(device);
|
||||
return dfu.writeMode(device);
|
||||
})
|
||||
.then(() => dfu.findDevice({ name: "DfuTarg" }))
|
||||
.then(device => {
|
||||
|
||||
Reference in New Issue
Block a user