node-raspberrypi-usbboot
Advanced tools
Comparing version 0.2.1-usbboot-stalls-e80ac7df3a8e37f15a4e7229742f81020f4386c4 to 0.2.1-usbboot-stalls-ff0793617ee5e87aa90f311ebec7ea43b6261bb8
@@ -18,2 +18,3 @@ /// <reference types="node" /> | ||
private interval; | ||
private devices; | ||
constructor(); | ||
@@ -20,0 +21,0 @@ start(): void; |
@@ -326,2 +326,3 @@ "use strict"; | ||
this.boundDetachDevice = this.detachDevice.bind(this); | ||
this.devices = {}; | ||
// This is an undocumented property | ||
@@ -352,2 +353,3 @@ if (usb.INIT_ERROR) { | ||
if (step === UsbbootDevice.LAST_STEP) { | ||
Reflect.deleteProperty(this.devices, `${device.busNumber}:${device.deviceAddress}`); | ||
this.remove(device); | ||
@@ -388,2 +390,6 @@ } | ||
} | ||
if (this.devices[`${device.busNumber}:${device.deviceAddress}`]) { | ||
return; | ||
} | ||
this.devices[`${device.busNumber}:${device.deviceAddress}`] = true; | ||
debug('Found serial number', device.deviceDescriptor.iSerialNumber); | ||
@@ -390,0 +396,0 @@ debug('port id', devicePortId(device)); |
@@ -9,2 +9,5 @@ # Change Log | ||
* WIP fix [Juan Cruz Viotti] | ||
* WIP fix [Juan Cruz Viotti] | ||
* Keep track of devices [Juan Cruz Viotti] | ||
* Fix typings [Juan Cruz Viotti] | ||
@@ -11,0 +14,0 @@ * WIP polling [Juan Cruz Viotti] |
{ | ||
"name": "node-raspberrypi-usbboot", | ||
"version": "0.2.1-usbboot-stalls-e80ac7df3a8e37f15a4e7229742f81020f4386c4", | ||
"version": "0.2.1-usbboot-stalls-ff0793617ee5e87aa90f311ebec7ea43b6261bb8", | ||
"description": "Transforms Raspberry Pi Compute Modules and Zeros to mass storage devices.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
27827403
508