Quantcast

Patch - fix a typo in a MPSSE command in ftdi.h

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Patch - fix a typo in a MPSSE command in ftdi.h

Benjamin Vanheuverzwijn
Hi,

There is a typo in ftdi.h for the CLK_BYTES_OR_LOW define. It should be 0x9d and not 0x0d.

--- a/src/ftdi.h
+++ b/src/ftdi.h
@@ -118,7 +118,7 @@ enum ftdi_module_detach_mode
 #define EN_ADAPTIVE     0x96
 #define DIS_ADAPTIVE    0x97
 #define CLK_BYTES_OR_HIGH 0x9c
-#define CLK_BYTES_OR_LOW  0x0d
+#define CLK_BYTES_OR_LOW  0x9d
 /*FT232H specific commands */
 #define DRIVE_OPEN_COLLECTOR 0x9e
 /* Value Low */

Thanks!

--
Benjamin Vanheuverzwijn


libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Patch - fix a typo in a MPSSE command in ftdi.h

Thomas Jarosch
On Sunday, 8. June 2014 09:51:04 Benjamin Vanheuverzwijn wrote:

> Hi,
>
> There is a typo in ftdi.h for the CLK_BYTES_OR_LOW define. It should be
> 0x9d and not 0x0d.
>
> --- a/src/ftdi.h
> +++ b/src/ftdi.h
> @@ -118,7 +118,7 @@ enum ftdi_module_detach_mode
>  #define EN_ADAPTIVE     0x96
>  #define DIS_ADAPTIVE    0x97
>  #define CLK_BYTES_OR_HIGH 0x9c
> -#define CLK_BYTES_OR_LOW  0x0d
> +#define CLK_BYTES_OR_LOW  0x9d
>  /*FT232H specific commands */
>  #define DRIVE_OPEN_COLLECTOR 0x9e
>  /* Value Low */
>
> Thanks!

good catch, I've verified that in the datasheet. Applied.

Thanks,
Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Loading...