Commit 20a3c87385341d76649cdaa74293dff342c60fee

Authored by Gordon Hollingworth
Committed by GitHub
2 parents c7fab44e 394589d8

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

Always re-enumerate BCM2835 after sending bootcode.bin to run the boot file server
Showing 1 changed file with 2 additions and 1 deletions
@@ -393,6 +393,7 @@ int file_server(libusb_device_handle * usb_device) @@ -393,6 +393,7 @@ int file_server(libusb_device_handle * usb_device)
393 } 393 }
394 } 394 }
395 395
  396 + printf("Second stage boot server done\n");
396 return 0; 397 return 0;
397 } 398 }
398 399
@@ -492,7 +493,7 @@ int main(int argc, char *argv[]) @@ -492,7 +493,7 @@ int main(int argc, char *argv[])
492 libusb_close(usb_device); 493 libusb_close(usb_device);
493 sleep(5); 494 sleep(5);
494 } 495 }
495 - while(loop); 496 + while(loop || desc.iSerialNumber == 0);
496 497
497 libusb_exit(ctx); 498 libusb_exit(ctx);
498 499