From ebf93643faebae85d2956760991c01573df6ef16 Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Tue, 6 Jun 2017 13:12:25 -0400 Subject: [PATCH] allow hex input again to lf presco --- client/cmdlfpresco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5