]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed read uart for windows
authorroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 7 Dec 2012 07:21:00 +0000 (07:21 +0000)
committerroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 7 Dec 2012 07:21:00 +0000 (07:21 +0000)
client/proxmark3.c

index cff94903d1693e46e585f9d00fedc532fc9b67b5..a649576d66021eeb2fb1ac062482d9822a039d43 100644 (file)
@@ -67,6 +67,7 @@ static void *uart_receiver(void *targ) {
   size_t cmd_count;
   
   while (arg->run) {
   size_t cmd_count;
   
   while (arg->run) {
+    rxlen = sizeof(UsbCommand);
     if (uart_receive(sp,rx,&rxlen)) {
       if ((rxlen % sizeof(UsbCommand)) != 0) {
         PrintAndLog("ERROR: received %zd bytes, which does not seem to be one or more command(s)\n",rxlen);
     if (uart_receive(sp,rx,&rxlen)) {
       if ((rxlen % sizeof(UsbCommand)) != 0) {
         PrintAndLog("ERROR: received %zd bytes, which does not seem to be one or more command(s)\n",rxlen);
Impressum, Datenschutz