From: marshmellow42 <marshmellowrf@gmail.com>
Date: Tue, 6 Jun 2017 17:12:25 +0000 (-0400)
Subject: allow hex input again to lf presco
X-Git-Tag: v3.0.1~6^2^2~2
X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/ebf93643faebae85d2956760991c01573df6ef16

allow hex input again to lf presco
---

diff --git a/client/cmdlfpresco.c b/client/cmdlfpresco.c
index 4fdf1be5..ee3b5d5b 100644
--- a/client/cmdlfpresco.c
+++ b/client/cmdlfpresco.c
@@ -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) {