From 0c0980105b276b8617b24e3df06a9cd43fcff896 Mon Sep 17 00:00:00 2001 From: Tennessee Carmel-Veilleux Date: Wed, 26 Jan 2022 16:54:25 -0500 Subject: [PATCH] Fix file save failure caused by restyle-diff.sh --- src/app/clusters/basic/basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/basic/basic.cpp b/src/app/clusters/basic/basic.cpp index db602f5393fcb6..0b0e3ee83709e2 100644 --- a/src/app/clusters/basic/basic.cpp +++ b/src/app/clusters/basic/basic.cpp @@ -282,7 +282,7 @@ CHIP_ERROR BasicAttrAccess::ReadLocation(AttributeValueEncoder & aEncoder) } ReturnErrorOnFailure(err); - return encoder.Encode(chip::CharSpan(buf, codeLen)); + return aEncoder.Encode(chip::CharSpan(location, codeLen)); } CHIP_ERROR BasicAttrAccess::Write(const ConcreteDataAttributePath & aPath, AttributeValueDecoder & aDecoder)