Commit 20a3c87385341d76649cdaa74293dff342c60fee
Committed by
GitHub
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
main.c
| ... | ... | @@ -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 | 397 | return 0; |
| 397 | 398 | } |
| 398 | 399 | |
| ... | ... | @@ -492,7 +493,7 @@ int main(int argc, char *argv[]) |
| 492 | 493 | libusb_close(usb_device); |
| 493 | 494 | sleep(5); |
| 494 | 495 | } |
| 495 | - while(loop); | |
| 496 | + while(loop || desc.iSerialNumber == 0); | |
| 496 | 497 | |
| 497 | 498 | libusb_exit(ctx); |
| 498 | 499 | ... | ... |