# HG changeset patch # User Mychaela Falconia # Date 1694454456 0 # Node ID 9a15eb300ab03264dae0ed31c890b621c1429bf6 # Parent a5c4a82d01ab3dd8363a98e7029aff3a417c3408 cp2102-read-partno works diff -r a5c4a82d01ab -r 9a15eb300ab0 cp2102/read_partno.c --- a/cp2102/read_partno.c Mon Sep 11 17:41:24 2023 +0000 +++ b/cp2102/read_partno.c Mon Sep 11 17:47:36 2023 +0000 @@ -36,8 +36,8 @@ fprintf(stderr, "error: usb_open() failed\n"); exit(1); } - rc = usb_control_msg(usbh, DEVICE_IN_REQTYPE, CP210x_CONFIG, 0, - REG_PART_NUMBER, (char *) &partno, 1, + rc = usb_control_msg(usbh, DEVICE_IN_REQTYPE, CP210x_CONFIG, + REG_PART_NUMBER, 0, (char *) &partno, 1, USB_READ_TIMEOUT); if (rc != 1) { fprintf(stderr,