Skip to content

Dead code in ricoh2 backend?

I've been looking at the code of the ricoh2 backend

https://gitlab.com/sane-project/backends/-/blob/32f335d0f1bb9f4fa25fdab722d0201043614df3/backend/ricoh2.c

It seems strange that sanei_usb_find_devices() is called for a list of devices on lines 290-293, but then it is called strangely on lines 314 and 315:

sanei_usb_find_devices (0x5ca, 0x042c, attach);
sanei_usb_find_devices (0x5ca, 0x0448, attach);

Seems that lines 314 and 315 are useless. But, if just remove them, code above and bellow in sane_get_devices() still seems strange, for example num_devices seems to always be 0...

CC @yu_stas , Stanislav, maybe you could have a look at this... I don;t have hardware for tests.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information