]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfpcf7931.c
PCF-fix bytepos range from 0-3 to 0-15
[proxmark3-svn] / client / cmdlfpcf7931.c
index 63333b97bbd9358385e05e46cc2967fd220a35f3..636db4832db0493b4094835a73d49498cef581cb 100644 (file)
@@ -137,7 +137,7 @@ int CmdLFPCF7931Write(const char *Cmd){
        if ( param_getdec(Cmd, 0, &block) ) return usage_pcf7931_write();
        if ( param_getdec(Cmd, 1, &bytepos) ) return usage_pcf7931_write();
        
-       if ( (block > 7) || (bytepos > 3) ) return usage_pcf7931_write();
+       if ( (block > 7) || (bytepos > 15) ) return usage_pcf7931_write();
 
        data  = param_get8ex(Cmd, 2, 0, 16);
        
Impressum, Datenschutz