Chris Styles
/
m3pi_AVRprogrammer
Diff: main.cpp
- Revision:
- 1:ce6a12e62219
- Parent:
- 0:20fc0ecfb510
--- 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 }