X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/c86cc30801a3ea718df1daa45e989cb40f8c5950..e3dfa4277219c1cb72b906860faf537336bf866c:/winsrc/command.cpp diff --git a/winsrc/command.cpp b/winsrc/command.cpp index 45683074..0214a0ab 100644 --- a/winsrc/command.cpp +++ b/winsrc/command.cpp @@ -909,9 +909,12 @@ static void CmdHexsamples(char *str) { int i; int n; + int requested = atoi(str); + int delivered = 0; if(atoi(str) == 0) { n = 12; + requested = 12; } else { n = atoi(str)/4; } @@ -939,7 +942,12 @@ static void CmdHexsamples(char *str) c.d.asBytes[j+7], c.d.asBytes[j+8] ); + delivered += 8; + if(delivered >= requested) + break; } + if(delivered >= requested) + break; } }