]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/flash.c
Merge branch 'master' of https://github.com/iceman1001/proxmark3
[proxmark3-svn] / client / flash.c
index d2163d9a0c1334c6f6636c27a5bb88005adacde9..b0ae46b3ba95796254699c8cc859b2aba7a2fbf0 100644 (file)
@@ -28,7 +28,13 @@ int OpenProxmark(size_t i);
 unsigned int current_command = CMD_UNKNOWN;
 
 #define FLASH_START            0x100000
-#define FLASH_SIZE             (256*1024)
+
+#ifdef HAS_512_FLASH
+# define FLASH_SIZE             (512*1024)
+#else
+# define FLASH_SIZE             (256*1024)
+#endif
+
 #define FLASH_END              (FLASH_START + FLASH_SIZE)
 #define BOOTLOADER_SIZE        0x2000
 #define BOOTLOADER_END         (FLASH_START + BOOTLOADER_SIZE)
@@ -276,7 +282,7 @@ static int get_proxmark_state(uint32_t *state)
 {
        UsbCommand c;
        c.cmd = CMD_DEVICE_INFO;
-  SendCommand(&c);
+       SendCommand(&c);
        UsbCommand resp;
        ReceiveCommand(&resp);
 
Impressum, Datenschutz