visomat-data-downloader: dump the eeprom in any case after get_response()
authorAntonio Ospite <ao2@ao2.it>
Sun, 10 Jan 2016 09:05:35 +0000 (10:05 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sun, 10 Jan 2016 09:13:05 +0000 (10:13 +0100)
src/visomat-data-downloader.c

index 2ea275a..574bb13 100644 (file)
@@ -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;