From a2374b362028e2e12c27ac2f0c456320a503a2a8 Mon Sep 17 00:00:00 2001 From: ghollingworth Date: Wed, 16 Apr 2014 13:55:59 +0100 Subject: [PATCH] Exit from program when you program it --- main.c | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/main.c b/main.c index 9ca6f88..d0f968b 100755 --- a/main.c +++ b/main.c @@ -164,7 +164,13 @@ int main(int argc, char *argv[]) usb_device); if (retcode == 0) + { printf("Successfull\n"); + if(fp==fp2) + { + printf("Raspberry Pi is now a mass storage device, use lsblk to find it\n"); + exit(0); + } else printf("Failed : 0x%x", retcode); -- libgit2 0.21.4