You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/01/20 18:36:29 UTC

incubator-mynewt-larva git commit: Don't list empty image slots.

Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master aed7b1e46 -> ee49f37bb


Don't list empty image slots.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/ee49f37b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/ee49f37b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/ee49f37b

Branch: refs/heads/master
Commit: ee49f37bbdd5610c941b4d55b9d18248bc6873e9
Parents: aed7b1e
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Jan 20 09:35:58 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Jan 20 09:35:58 2016 -0800

----------------------------------------------------------------------
 libs/imgmgr/src/imgmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/ee49f37b/libs/imgmgr/src/imgmgr.c
----------------------------------------------------------------------
diff --git a/libs/imgmgr/src/imgmgr.c b/libs/imgmgr/src/imgmgr.c
index 4df9389..bcaf52d 100644
--- a/libs/imgmgr/src/imgmgr.c
+++ b/libs/imgmgr/src/imgmgr.c
@@ -117,7 +117,7 @@ imgr_list(struct nmgr_hdr *nmr, struct os_mbuf *req, uint16_t srcoff,
 
     for (i = FLASH_AREA_IMAGE_0; i <= FLASH_AREA_IMAGE_1; i++) {
         rc = imgr_read_ver(i, &ver);
-        if (rc < 0) {
+        if (rc != 0) {
             continue;
         }
         ver_len = imgr_ver_str(&ver, vers_str[cnt]);