fix(usbboot): opening device debug message prints undefined (#1776)

We have a debug message that prints `device.name`, which is not a valid
property, and therefore the debug logs show `undefined` instead of the
USB id pair.

Change-Type: patch
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
Juan Cruz Viotti 2017-10-17 10:47:34 +01:00 committed by GitHub
parent e54a8ae92b
commit df05d4cc08

View File

@ -339,7 +339,7 @@ exports.scan = (options) => {
device.adaptor = exports.name
// We need to open the device in order to access _configDescriptor
debug(`Opening device: ${device.name}`)
debug(`Opening device: ${device.displayName}`)
device.open()
// Ensures we don't wait forever if an issue occurs