Skip to content
Snippets Groups Projects
Commit 629540ca authored by Adam Wujek's avatar Adam Wujek
Browse files

userspace/libwr/i2c_sfp: add SFP DB entries in increasing order


Before it was in the reverse order.

Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
parent 6fd17448
Branches
No related merge requests found
...@@ -775,7 +775,7 @@ int shw_sfp_read_db(void *(*sfp_db_alloc)(size_t alloc_size)) ...@@ -775,7 +775,7 @@ int shw_sfp_read_db(void *(*sfp_db_alloc)(size_t alloc_size))
return -1; return -1;
} }
for (index = 0; index<nbSfpEntries; index++) { for (index = nbSfpEntries - 1; index >= 0 ; index--) {
error = libwr_cfg_convert2("SFP%02i_PARAMS", "pn", error = libwr_cfg_convert2("SFP%02i_PARAMS", "pn",
LIBWR_STRING, s, index); LIBWR_STRING, s, index);
if (error) if (error)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment