]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfpresco.c
allow hex input again to lf presco
[proxmark3-svn] / 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