Skip to content

Commit

Permalink
Put temporary fix for function pointer casting error in arm gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
fessehaeve committed Feb 7, 2022
1 parent bb6c4f8 commit d7472dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/util/attribute-storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ EmberAfStatus emAfClusterPreAttributeChangedCallback(const app::ConcreteAttribut
else
{
EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS;
EmberAfGenericClusterFunction f = emberAfFindClusterFunction(cluster, CLUSTER_MASK_PRE_ATTRIBUTE_CHANGED_FUNCTION);
EmberAfClusterPreAttributeChangedCallback f = (EmberAfClusterPreAttributeChangedCallback )(emberAfFindClusterFunction(cluster, CLUSTER_MASK_PRE_ATTRIBUTE_CHANGED_FUNCTION));
if (f != NULL)
{
status = ((EmberAfClusterPreAttributeChangedCallback) f)(attributePath, attributeType, size, value);
status = f(attributePath, attributeType, size, value);
}
return status;
}
Expand Down

0 comments on commit d7472dd

Please sign in to comment.