diff --git a/lib/libusbx52/usb_x52_stub.c b/lib/libusbx52/usb_x52_stub.c index a65de70..9209539 100644 --- a/lib/libusbx52/usb_x52_stub.c +++ b/lib/libusbx52/usb_x52_stub.c @@ -240,6 +240,8 @@ int libusb_open(libusb_device *dev, libusb_device_handle **handle) free(tmp_hdl); return LIBUSB_ERROR_IO; } + /* Set the packet data file to be line buffered */ + setlinebuf(tmp_hdl->packet_data_file); LIBUSB_DUMP_LOG_FILE(tmp_hdl, LIBUSB_LOG_LEVEL_DEBUG, "VID: %04x PID: %04x idx: %d ref: %d\n",