From b5e6279e62918e56f419dd3e40385d7af2d106b6 Mon Sep 17 00:00:00 2001 From: vijendrx Date: Tue, 7 Mar 2017 17:44:40 +0530 Subject: [PATCH] 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 --- bridging/plugins/hue_plugin/hue_resource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 { -- 2.7.4