Commit a2374b362028e2e12c27ac2f0c456320a503a2a8

Authored by ghollingworth
Committed by Gordon Hollingworth
1 parent 1cddbb1e

Exit from program when you program it

Showing 1 changed file with 6 additions and 0 deletions
@@ -164,7 +164,13 @@ int main(int argc, char *argv[]) @@ -164,7 +164,13 @@ int main(int argc, char *argv[])
164 usb_device); 164 usb_device);
165 165
166 if (retcode == 0) 166 if (retcode == 0)
  167 + {
167 printf("Successfull\n"); 168 printf("Successfull\n");
  169 + if(fp==fp2)
  170 + {
  171 + printf("Raspberry Pi is now a mass storage device, use lsblk to find it\n");
  172 + exit(0);
  173 + }
168 else 174 else
169 printf("Failed : 0x%x", retcode); 175 printf("Failed : 0x%x", retcode);
170 176