Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Mon Nov 01 22:52:40 2010 +0000
Parent:
0:20fc0ecfb510
Commit message:
Added a #define to determine if the bin file is deleted

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 01 17:11:45 2010 +0000
+++ b/main.cpp	Mon Nov 01 22:52:40 2010 +0000
@@ -8,6 +8,8 @@
 
 #include "AVR910.h"
 
+#define DELETE_BINARY 1
+
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
 
@@ -32,7 +34,9 @@
         led1 = 1; // in progress
         success = mbedISP.program(fp);
         fclose(fp);
-        remove("/local/program.avr"); // remove the file when we're done
+        #ifdef DELETE_BINARY 
+            remove("/local/program.avr"); // remove the file when we're done
+        #endif    
         led2 = 1; // finished
     }