nolo: Fix nolo_send_image
This commit is contained in:
1 parent
e4b4d211c1
commit
15b05dce75
1 file changed
+4
-2
+4
-2
@@ -240,12 +240,14 @@ static int nolo_send_image(struct usb_device_info * dev, struct image * image, i
|
||||
int i;
|
||||
uint8_t len;
|
||||
char buf[9];
|
||||
char ** bufs;
|
||||
char ** bufs = NULL;
|
||||
struct device_list * device = image->devices;
|
||||
|
||||
while ( device )
|
||||
while ( device ) {
|
||||
if ( device->device == dev->detected_device && hwrev_is_valid(device->hwrevs, dev->detected_hwrev) )
|
||||
break;
|
||||
device = device->next;
|
||||
}
|
||||
|
||||
if ( device )
|
||||
bufs = device_list_alloc_to_bufs(device);
|
||||
|
||||
Reference in new issue
Block a user