]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
FIX: minor fixes to the HID wiegand generation command. Still not complete
[proxmark3-svn] / client / cmddata.c
index ad86f45f43fa3bd25de86b1b81dff1b0b368c42e..83d5f3f2acdea8c78450d9dd56caf57dc28c7132 100644 (file)
@@ -2325,21 +2325,15 @@ int Cmdbin2hex(const char *Cmd)
 }
 
 int usage_data_hex2bin(){
-
-       PrintAndLog("Usage: data bin2hex <binary_digits>");
+       PrintAndLog("Usage: data hex2bin <hex_digits>");
        PrintAndLog("       This function will ignore all non-hexadecimal characters (but stop reading on whitespace)");
        return 0;
-
 }
 
 int Cmdhex2bin(const char *Cmd)
 {
        int bg =0, en =0;
-       if(param_getptr(Cmd, &bg, &en, 0))
-       {
-               return usage_data_hex2bin();
-       }
-
+       if(param_getptr(Cmd, &bg, &en, 0))  return usage_data_hex2bin();
 
        while(bg <= en )
        {
Impressum, Datenschutz