The branch, master has been updated
via 0fad6f389a7cad0513b23f73b2439700e53d47b3 (commit)
from b006371dbde50c000cd822143310d9b605b6dfe1 (commit)
- Log -----------------------------------------------------------------
commit 0fad6f389a7cad0513b23f73b2439700e53d47b3
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date: Wed Aug 9 14:28:15 2023 +0200
EEPROM: fix checksum for FT230X series
ftdi_eeprom_build() computes the checksum via reading the "Factory
Configuration Data" region. ftdi_eeprom_decode() computes the checksum
only on the EEPROM buffer. Hence, both checksums differ.
Add the info from "Factory Configuration Data" to the EEPROM buffer.
-----------------------------------------------------------------------
Summary of changes:
src/ftdi.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index 3a51b26..cf53e04 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -3503,6 +3503,8 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi)
i = 0x50;
}
value = data;
+ output[i * 2] = data;
+ output[(i * 2) + 1] = data >> 8;
}
else {
value = output[i*2];
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|