Commit 394589d87cd48a261c8fccb7c07c6430c76f1ad1
1 parent
c7fab44e
Execute both sending bootcode.bin and second stage boot server when
loop=0
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,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 |