From 33462cfae1031a5479eaec7b59a40669ad085eec Mon Sep 17 00:00:00 2001 From: wu-chengwen Date: Tue, 12 Jul 2022 17:49:31 +0800 Subject: [PATCH] fix(usb):add DRP and NUM_MODES mock Signed-off-by: wu-chengwen --- runtime/main/extend/systemplugin/napi/ohos_usb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/main/extend/systemplugin/napi/ohos_usb.js b/runtime/main/extend/systemplugin/napi/ohos_usb.js index 98954003..8555f676 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_usb.js +++ b/runtime/main/extend/systemplugin/napi/ohos_usb.js @@ -88,8 +88,10 @@ export function mockUsb() { const PortModeType = { NONE: '[PC Preview] unknow NONE', - DFP: '[PC Preview] unknow DFP', UFP: '[PC Preview] unknow UFP', + DFP: '[PC Preview] unknow DFP', + DRP: '[PC Preview] unknow DRP', + NUM_MODES: '[PC Preview] unknow NUM_MODES', }; const USBPortStatus = {