break;
case DEVICE_TYPE_CULFW:
{
- char buf[128];
+ char buf[256];
int i;
memset(buf, 0, sizeof(buf));
printf("Waiting for device with serial %s\n", serial);
while (1) {
+ errno = 0;
switch (dev.type) {
- errno = 0;
case DEVICE_TYPE_CULFW:
pfd = culfw_poll(dev.culfw, 1);
break;