EEPROM: calculate user_data_addr

2023-07-31 Thread Yegor Yefremov
I want to write ca. 25 bytes as user data (my FTDI chips are FT2232, FT4232 and FTX). What is my strategy to calculate the user_data_addr? If I set EEPROM defaults via ftdi_eeprom_initdefaults() providing only the product string. Then I perform ftdi_eeprom_build() and use its return value to

[PATCH] EEPROM: make user_data_addr value readable

2023-07-31 Thread yegorslists
From: Yegor Yefremov Before this change, the user_data_addr could be only written but not read. --- src/ftdi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ftdi.c b/src/ftdi.c index 0a7fb27..df822cb 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -4172,6 +4172,9 @@ int