From: roel@libnfc.org Date: Fri, 7 Dec 2012 07:21:00 +0000 (+0000) Subject: fixed read uart for windows X-Git-Tag: v1.0.0~130^2~26 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/af65f5f71df8019e34e885070c99e31b06ccce55 fixed read uart for windows --- diff --git a/client/proxmark3.c b/client/proxmark3.c index cff94903..a649576d 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -67,6 +67,7 @@ static void *uart_receiver(void *targ) { 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);