From: Antonio Ospite Date: Sun, 10 Jan 2016 09:05:35 +0000 (+0100) Subject: visomat-data-downloader: dump the eeprom in any case after get_response() X-Git-Url: https://git.ao2.it/visomat-utils.git/commitdiff_plain/89ec9734ef0716e4b46cd33bc10434c677d860a6?ds=sidebyside visomat-data-downloader: dump the eeprom in any case after get_response() --- diff --git a/src/visomat-data-downloader.c b/src/visomat-data-downloader.c index 2ea275a..574bb13 100644 --- a/src/visomat-data-downloader.c +++ b/src/visomat-data-downloader.c @@ -323,12 +323,11 @@ static int visomat_dump_eeprom(visomat_device *dev, unsigned int user_mask) return ret; ret = get_response(dev, buffer, sizeof(buffer)); + debug("buffer size: %d\n", ret); + debug_dump_buffer("eeprom.bin", buffer, sizeof(buffer)); if (ret < 0) return ret; - debug("buffer len: %d\n", ret); - debug_dump_buffer("eeprom.bin", buffer, sizeof(buffer)); - ret = decode_eeprom(buffer, ret, user_mask); if (ret < 0) return ret;