X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7fe9b0b742d7dae9c5af1d292d11840b5c3cbfae..686f0a1794863adc1fe4cb27e920081e9b20e94e:/client/cmdhw.c diff --git a/client/cmdhw.c b/client/cmdhw.c index c2b58c9f..dd1f37b3 100644 --- a/client/cmdhw.c +++ b/client/cmdhw.c @@ -1,9 +1,20 @@ +//----------------------------------------------------------------------------- +// Copyright (C) 2010 iZsh +// +// This code is licensed to you under the terms of the GNU GPL, version 2 or, +// at your option, any later version. See the LICENSE.txt file for the text of +// the license. +//----------------------------------------------------------------------------- +// Hardware commands +//----------------------------------------------------------------------------- + #include #include #include #include #include "ui.h" -#include "proxusb.h" +//#include "proxusb.h" +#include "proxmark3.h" #include "cmdparser.h" #include "cmdhw.h" @@ -76,7 +87,7 @@ int CmdReset(const char *Cmd) int CmdSetDivisor(const char *Cmd) { UsbCommand c = {CMD_SET_LF_DIVISOR, {strtol(Cmd, NULL, 0), 0, 0}}; - if (c.arg[0] < 0 || c.arg[0] > 255) { + if (c.arg[0] < 19 || c.arg[0] > 255) { PrintAndLog("divisor must be between 19 and 255"); } else { SendCommand(&c);