X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7fe9b0b742d7dae9c5af1d292d11840b5c3cbfae..f7e3ed82874bfd8951c90536bd7185d599d6dbf8:/client/flash.c diff --git a/client/flash.c b/client/flash.c index 40c38439..b4e4c891 100644 --- a/client/flash.c +++ b/client/flash.c @@ -3,18 +3,17 @@ #include #define bzero(b,len) (memset((b), '\0', (len)), (void) 0) BOOL UsbConnect(void); -#else -#include #endif +#include #include #include +#include #include "flash.h" #include "elf.h" static uint32_t ExpectedAddr; static uint8_t QueuedToSend[256]; -static bool AllWritten; #define PHYSICAL_FLASH_START 0x100000 #define PHYSICAL_FLASH_END 0x200000 @@ -63,8 +62,6 @@ void WriteBlock(unsigned int block_start, unsigned int len, unsigned char *buf) memcpy(c.d.asBytes, temp_buf+240, 16); SendCommand(&c); WaitForAck(); - - AllWritten = true; } void LoadFlashFromFile(const char *file, int start_addr, int end_addr)