Skip to content

Commit e2352b0

Browse files
committedMar 26, 2024
Merge branch 'develop' of github.com:nerdyscout/Arduino_MCP3x6x_Library into develop
2 parents 0f3dfa7 + 6d937c6 commit e2352b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/MCP3x6x.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ MCP3x6x::status_t MCP3x6x::read(Adcdata *data) {
130130
}
131131
*/
132132
uint8_t buffer[s];
133+
memset(buffer, 0, s);
133134

134135
// while (status_dr()) {
135136
_transfer(buffer, MCP3x6x_CMD_SREAD | MCP3x6x_ADR_ADCDATA, s);

0 commit comments

Comments
 (0)