imgmgr; fix use of incorrect cbor encoder.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/41e4670a Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/41e4670a Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/41e4670a Branch: refs/heads/develop Commit: 41e4670a896ce2087e4e5ae1354dc40c74a0e4ce Parents: 39a34a2 Author: Marko Kiiskila <ma...@runtime.io> Authored: Tue Nov 8 23:27:50 2016 -0800 Committer: Marko Kiiskila <ma...@runtime.io> Committed: Tue Nov 8 23:27:50 2016 -0800 ---------------------------------------------------------------------- mgmt/imgmgr/src/imgmgr_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/41e4670a/mgmt/imgmgr/src/imgmgr_state.c ---------------------------------------------------------------------- diff --git a/mgmt/imgmgr/src/imgmgr_state.c b/mgmt/imgmgr/src/imgmgr_state.c index d3adf39..99bcb31 100644 --- a/mgmt/imgmgr/src/imgmgr_state.c +++ b/mgmt/imgmgr/src/imgmgr_state.c @@ -248,7 +248,7 @@ imgmgr_state_read(struct mgmt_cbuf *cb) g_err |= cbor_encoder_create_map(&images, &image, CborIndefiniteLength); g_err |= cbor_encode_text_stringz(&image, "slot"); - g_err |= cbor_encode_int(&rsp, i); + g_err |= cbor_encode_int(&image, i); g_err |= cbor_encode_text_stringz(&image, "version"); imgr_ver_str(&ver, vers_str);