Skip to content

Commit

Permalink
Fix file save failure caused by restyle-diff.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux committed Jan 26, 2022
1 parent f814fbd commit 0c09801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/basic/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0c09801

Please sign in to comment.