This commit is contained in:
2016-01-21 13:22:32 +01:00
parent 82ad58edc5
commit a6f31599c6
+1 -1
View File
@@ -79,7 +79,7 @@ bool cbuf_read(circbuf_t *inst, uint8_t *b)
bool cbuf_peek(circbuf_t *inst, size_t nth, uint8_t *b) bool cbuf_peek(circbuf_t *inst, size_t nth, uint8_t *b)
{ {
// check if can read there (can't use module, could "wrap") // check if can read there (can't use modulo, could "wrap")
size_t n = inst->lr; size_t n = inst->lr;
for (size_t i = 0; i <= nth; i++) { for (size_t i = 0; i <= nth; i++) {
// increment N // increment N