diff --git a/usb/usb_standard/src/main/js/test/UsbPortAndFunctionJsunit.test.js b/usb/usb_standard/src/main/js/test/UsbPortAndFunctionJsunit.test.js index d0062378b4b9b6517b88f2c49e13d8b381599d13..323ddc84ff81f7b15bc6340bccc0e79b4ea01aa7 100644 --- a/usb/usb_standard/src/main/js/test/UsbPortAndFunctionJsunit.test.js +++ b/usb/usb_standard/src/main/js/test/UsbPortAndFunctionJsunit.test.js @@ -29,7 +29,7 @@ describe('UsbPortAndFunctionsJsFunctionsTest', function () { var usbPortList = usbManager.getPorts() if (usbPortList.length > 0) { if (usbPortList[0].status.currentMode == 2) { - usb.setPortRoles(usbPortList[0].id, usbManager.SINK, usbManager.DEVICE).then(data => { + usbManager.setPortRoles(usbPortList[0].id, usbManager.SINK, usbManager.DEVICE).then(data => { console.info('usb case setPortRoles return: ' + data); }).catch(error => { console.info('usb case setPortRoles error : ' + error);