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/11/22 01:17:20 UTC

[21/27] incubator-mynewt-core git commit: oic coap; using wrong local variable to set retransmit timer.

oic coap; using wrong local variable to set retransmit timer.


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/0f55f211
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/0f55f211
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/0f55f211

Branch: refs/heads/develop
Commit: 0f55f2111b771c119766e3d37d98d34b81a17ef0
Parents: 97b87d9
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Nov 21 11:31:54 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Nov 21 17:15:49 2016 -0800

----------------------------------------------------------------------
 net/oic/src/api/oc_ri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0f55f211/net/oic/src/api/oc_ri.c
----------------------------------------------------------------------
diff --git a/net/oic/src/api/oc_ri.c b/net/oic/src/api/oc_ri.c
index bcb605a..67e708f 100644
--- a/net/oic/src/api/oc_ri.c
+++ b/net/oic/src/api/oc_ri.c
@@ -586,7 +586,7 @@ oc_ri_invoke_coap_entity_handler(void *request, void *response, uint8_t *buffer,
           bool set_observe_option = true;
           if (cur_resource->properties & OC_PERIODIC) {
               os_callout_reset(&cur_resource->callout,
-                resource->observe_period_seconds * OS_TICKS_PER_SEC);
+                cur_resource->observe_period_seconds * OS_TICKS_PER_SEC);
           }
 
           if (set_observe_option) {