You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Door Lock cluster has command Clear Credential which has Nullable structure as an argument. Generator for CHIPClusters-JNI.cpp does not behave well in that case and produces clearly wrong code which uses undeclared parameters:
It seems to me that the generator creates a new function with parameters that correspond to the structure field, however the code expects to have a pointer to structure as an argument.
Proposed Solution
I'm not sure how to fix this. Maybe for such cases we don't need to expand structure fields into the individual parameters but leave the structure as a whole?
The text was updated successfully, but these errors were encountered:
Problem
Door Lock cluster has command Clear Credential which has Nullable structure as an argument. Generator for
CHIPClusters-JNI.cpp
does not behave well in that case and produces clearly wrong code which uses undeclared parameters:It seems to me that the generator creates a new function with parameters that correspond to the structure field, however the code expects to have a pointer to structure as an argument.
Proposed Solution
I'm not sure how to fix this. Maybe for such cases we don't need to expand structure fields into the individual parameters but leave the structure as a whole?
The text was updated successfully, but these errors were encountered: