changeset 51:9a15eb300ab0

cp2102-read-partno works
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 17:47:36 +0000
parents a5c4a82d01ab
children 61cdcf2eb17b
files cp2102/read_partno.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,