visomat-data-downloader: increase the eeprom buffer size Apparently the device can store up to 60 records per user, for 2 users, and each record is 20 bytes. Considering that the data has some header info like: M160...M260... the buffer must be at least: (20 * 60 * 2) + 8 + 2 = 2410 bytes Finally, the extra 2 bytes are the STX and ETX bytes. Increase the buffer size to 4096 bytes to be safe. Thanks-to: Cornelis Broeders <cornelis.broeders@web.de>
Fix parsing the eeprom when there are users with no records When the number of records for a given user is 0, there is a dummy byte at the end of the user memory block which has to be consumed as well, otherwise the while loop never ends. The bug was found out by Cornelis Broeders <cornelis.broeders@web.de>