Merge pull request #9 from tvoverbeek/fix-loop-logic

Always re-enumerate BCM2835 after sending bootcode.bin to run the boot file server
This commit is contained in:
Gordon Hollingworth
2017-01-21 07:15:53 +00:00
committed by GitHub

3
main.c
View File

@@ -393,6 +393,7 @@ int file_server(libusb_device_handle * usb_device)
}
}
printf("Second stage boot server done\n");
return 0;
}
@@ -492,7 +493,7 @@ int main(int argc, char *argv[])
libusb_close(usb_device);
sleep(5);
}
while(loop);
while(loop || desc.iSerialNumber == 0);
libusb_exit(ctx);