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);
+ PrintAndLog("ERROR: received %03zd bytes, which does not seem to be one or more command(s)\n",rxlen );
continue;
}
cmd_count = rxlen / sizeof(UsbCommand);