You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Donny9 (via GitHub)" <gi...@apache.org> on 2023/02/26 04:40:00 UTC
[GitHub] [nuttx] Donny9 commented on a diff in pull request #8650: mm/circbuf: update buffer head according to real length of writing
Donny9 commented on code in PR #8650:
URL: https://github.com/apache/nuttx/pull/8650#discussion_r1118018243
##########
drivers/sensors/sensor.c:
##########
@@ -954,6 +954,11 @@ static ssize_t sensor_push_event(FAR void *priv, FAR const void *data,
}
}
+ if (bytes > circbuf_size(&upper->buffer))
+ {
+ envcount = circbuf_size(&upper->buffer) / upper->state.esize;
Review Comment:
okay
--
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.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org