@psdk/ohos-usb 0.5.18 → 0.5.20

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.
package/build/provider.js CHANGED
@@ -113,7 +113,7 @@ export class OhosUsb {
113
113
  let index = 0;
114
114
  if (currentDevice != null) {
115
115
  if (mUsbDeviceConnection == null) {
116
- usb.requestRight(currentDevice.name);
116
+ await usb.requestRight(currentDevice.name);
117
117
  mUsbDeviceConnection = usb.connectDevice(currentDevice);
118
118
  let ret = usb.claimInterface(mUsbDeviceConnection, mUsbInterface, true);
119
119
  }
@@ -170,7 +170,7 @@ export class OhosUsb {
170
170
  */
171
171
  read_usb(tempBytes) {
172
172
  if (mUsbDeviceConnection == null) {
173
- usb.requestRight(currentDevice.name);
173
+ await usb.requestRight(currentDevice.name);
174
174
  mUsbDeviceConnection = usb.connectDevice(currentDevice);
175
175
  let ret = usb.claimInterface(mUsbDeviceConnection, mUsbInterface, true);
176
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psdk/ohos-usb",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
4
4
  "description": "psdk - ohos usb device support",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -24,12 +24,12 @@
24
24
  "typescript": "^5.5.3"
25
25
  },
26
26
  "dependencies": {
27
- "@psdk/frame-father": "0.5.18",
27
+ "@psdk/frame-father": "0.5.20",
28
28
  "await-timeout": "^1.1.1"
29
29
  },
30
30
  "files": [
31
31
  "build",
32
32
  "!build/browser/psdk*"
33
33
  ],
34
- "gitHead": "c1d3ad454ff82f138a744d59b38bb6b933edc389"
34
+ "gitHead": "da9fa7627da04e3d4f3794f51b3c93a6626bdd9d"
35
35
  }