projects
/
visomat-utils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b45f3e
)
visomat-data-downloader: dump the eeprom in any case after get_response()
author
Antonio Ospite <ao2@ao2.it>
Sun, 10 Jan 2016 09:05:35 +0000
(10:05 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Sun, 10 Jan 2016 09:13:05 +0000
(10:13 +0100)
src/visomat-data-downloader.c
patch
|
blob
|
history
diff --git
a/src/visomat-data-downloader.c
b/src/visomat-data-downloader.c
index
2ea275a
..
574bb13
100644
(file)
--- 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));
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;
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;
ret = decode_eeprom(buffer, ret, user_mask);
if (ret < 0)
return ret;