]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
allow hex input again to lf presco
authormarshmellow42 <marshmellowrf@gmail.com>
Tue, 6 Jun 2017 17:12:25 +0000 (13:12 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Tue, 6 Jun 2017 17:12:25 +0000 (13:12 -0400)
client/cmdlfpresco.c

index 4fdf1be57e6f70a69e4ca77f0296343c1191cec7..ee3b5d5b34cee0b717dd034cfb238b5c855f4f9f 100644 (file)
@@ -91,7 +91,7 @@ int GetWiegandFromPresco(const char *Cmd, uint32_t *sitecode, uint32_t *usercode
        if(cmdp == 0) errors = 1;
 
        //Validations
-       if(errors || stringlen == 0) return -1;
+       if(errors || (stringlen == 0 && !hex) ) return -1;
 
        if (!hex) {
                for (int index =0; index < strlen(id); ++index) {
Impressum, Datenschutz