Commit a2374b362028e2e12c27ac2f0c456320a503a2a8
Committed by
Gordon Hollingworth
1 parent
1cddbb1e
Exit from program when you program it
Showing
1 changed file
with
6 additions
and
0 deletions
main.c
| ... | ... | @@ -164,7 +164,13 @@ int main(int argc, char *argv[]) |
| 164 | 164 | usb_device); |
| 165 | 165 | |
| 166 | 166 | if (retcode == 0) |
| 167 | + { | |
| 167 | 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 | 174 | else |
| 169 | 175 | printf("Failed : 0x%x", retcode); |
| 170 | 176 | ... | ... |