dediprog: Try to request 32B device string (instead of 16B)

It looks like `dpcmd' first tries 26B, then 32B. However, older devices
return only 16B.  We get a short, but otherwise valid transfer, so only
try once with 32B and allow any string length between 16B and 32B.

This allows to read the full version string from newer programmers. It
includes a hardware version now, probably since the first SF600.

Tested with "SF600PG2. V:01.01.012 HW:01.00".
Tested with "SF100   V:5.1.9".

Change-Id: Id137e4cfe3e1dbffb71ab4b16482822661117e39
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/91
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
1 file changed