diff --git a/lib/gui/assets/loading.svg b/lib/gui/assets/loading.svg
new file mode 100644
index 00000000..0e2dbcb4
--- /dev/null
+++ b/lib/gui/assets/loading.svg
@@ -0,0 +1,37 @@
+
+
diff --git a/lib/gui/assets/device-types/raspberrypi.svg b/lib/gui/assets/raspberrypi.svg
similarity index 100%
rename from lib/gui/assets/device-types/raspberrypi.svg
rename to lib/gui/assets/raspberrypi.svg
diff --git a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html
index deb52d98..63557206 100644
--- a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html
+++ b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html
@@ -11,7 +11,7 @@
ng-click="modal.toggleDrive(drive)">
diff --git a/lib/shared/sdk/usbboot/index.js b/lib/shared/sdk/usbboot/index.js
index 8c243bff..ccfb365b 100644
--- a/lib/shared/sdk/usbboot/index.js
+++ b/lib/shared/sdk/usbboot/index.js
@@ -328,12 +328,14 @@ exports.scan = (options) => {
device.device = idPair
device.displayName = 'Initializing device'
+ device.description = 'Compute Module'
device.raw = idPair
device.size = null
device.mountpoints = []
device.protected = false
device.system = false
device.disabled = true
+ device.icon = 'loading'
device.adaptor = exports.name
// We need to open the device in order to access _configDescriptor
@@ -362,9 +364,7 @@ exports.scan = (options) => {
const endpoint = deviceInterface.endpoint(addresses.endpoint)
- return usb.getDeviceName(device).then((deviceName) => {
- device.description = `${deviceName.manufacturer} ${deviceName.product}`
- }).then(() => {
+ return Bluebird.try(() => {
const serialNumberIndex = device.deviceDescriptor.iSerialNumber
debug(`Serial number index: ${serialNumberIndex}`)
diff --git a/lib/shared/sdk/usbboot/usb.js b/lib/shared/sdk/usbboot/usb.js
index 1b35e123..5f09f2a4 100644
--- a/lib/shared/sdk/usbboot/usb.js
+++ b/lib/shared/sdk/usbboot/usb.js
@@ -142,29 +142,3 @@ exports.performControlTransfer = (device, options) => {
)
})
}
-
-/**
- * @summary Get a human friendly name for a USB device
- * @function
- * @public
- *
- * @description
- * This function assumes the device is open.
- *
- * @param {Object} device - usb device
- * @fulfil {String} - device name
- * @returns {Promise}
- *
- * @example
- * usb.getDeviceName({ ... }).then((name) => {
- * console.log(name)
- * })
- */
-exports.getDeviceName = (device) => {
- return Bluebird.props({
- manufacturer: exports.getDeviceStringFromIndex(device, device.deviceDescriptor.iManufacturer),
- product: exports.getDeviceStringFromIndex(device, device.deviceDescriptor.iProduct)
- }).tap((properties) => {
- return `${properties.manufacturer} ${properties.product}`
- })
-}