From: vijendrx Date: Tue, 7 Mar 2017 12:14:40 +0000 (+0530) Subject: Support for partial chroma resource updation in hue plugin X-Git-Tag: 1.3.0~521 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5e6279e62918e56f419dd3e40385d7af2d106b6;p=platform%2Fupstream%2Fiotivity.git Support for partial chroma resource updation in hue plugin Added support for updating hue and saturation attributes of chroma resource in hue plugin on an individual basis. Change-Id: Ia07e9a858cc3190d0cd4df77f566ef6abc5bd539 Signed-off-by: vijendrx Reviewed-on: https://gerrit.iotivity.org/gerrit/17751 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Joseph Morrow Tested-by: Joseph Morrow Reviewed-by: Todd Malsbary --- diff --git a/bridging/plugins/hue_plugin/hue_resource.cpp b/bridging/plugins/hue_plugin/hue_resource.cpp index d86febb..6dd8cfd 100644 --- a/bridging/plugins/hue_plugin/hue_resource.cpp +++ b/bridging/plugins/hue_plugin/hue_resource.cpp @@ -922,7 +922,6 @@ OCEntityHandlerResult processPutRequest(OCEntityHandlerRequest *ehRequest, if (!OCRepPayloadGetPropInt(input, "hue", &light_resource.hue)) { - isChromaPropertyInPayload = true; OIC_LOG(INFO, TAG, "No hue in PUT payload"); } else @@ -934,7 +933,7 @@ OCEntityHandlerResult processPutRequest(OCEntityHandlerRequest *ehRequest, if (!OCRepPayloadGetPropInt(input, "saturation", &light_resource.sat)) { - throw "No saturation in PUT payload"; + OIC_LOG(INFO, TAG, "No saturation in PUT payload"); } else {