Skip to content

Commit

Permalink
Address review comment to fix Android attribute reading
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Oct 20, 2021
1 parent b0ceab8 commit af655f9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/controller/java/templates/CHIPClusters-JNI.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class CHIP{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}AttributeCall
env->CallBooleanMethod(arrayListObj, arrayListAddMethod, {{asLowerCamelCase name}});
{{/if}}
}
VerifyOrReturn(iter.GetStatus() != CHIP_NO_ERROR, ChipLogError(Zcl, "Error decoding {{asUpperCamelCase name}}Attribute value: %" CHIP_ERROR_FORMAT, iter.GetStatus().Format()));
VerifyOrReturn(iter.GetStatus() == CHIP_NO_ERROR, ChipLogError(Zcl, "Error decoding {{asUpperCamelCase name}}Attribute value: %" CHIP_ERROR_FORMAT, iter.GetStatus().Format()));

env->ExceptionClear();
env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
Expand Down
52 changes: 26 additions & 26 deletions src/controller/java/zap-generated/CHIPClusters-JNI.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit af655f9

Please sign in to comment.