@aepyornis/fastboot.ts 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepyornis/fastboot.ts",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Fastboot using WebUSB",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -153,9 +153,9 @@ export class FastbootClient {
153
153
  this.logger.log(`ACTION NEEDED: flashing ${command}`)
154
154
  await this.fd.exec(`flashing ${command}`)
155
155
 
156
- // some devices register before we have a chance to call
156
+ // some devices might register before we have a chance to call
157
157
  // waitForReconnect()
158
- if ((await navigator.usb.getDevices()).length > 0) {
158
+ if (this.getVarCache("product") === "bangkk" && (await navigator.usb.getDevices()).length > 0) {
159
159
  await this.fd.reconnect()
160
160
  } else {
161
161
  await this.fd.waitForReconnect()