sjanc commented on a change in pull request #2371:
URL: https://github.com/apache/mynewt-core/pull/2371#discussion_r483447399
##########
File path: hw/drivers/i2s/src/i2s.c
##########
@@ -316,7 +323,16 @@ i2s_buffer_put(struct i2s *i2s, struct i2s_sample_buffer
*buffer)
{
int sr;
int rc = I2S_OK;
+ int i;
+ if (I2S_BUFFER_GUARD) {
+ const uint8_t *pre = (uint8_t *)(buffer->sample_data) - 1;
Review comment:
nitpick: should be declared on function top
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]