bugfix: ring buffer, fix api xRingbufferReceiveUpToFromISR
This commit is contained in:
parent
1ed584f896
commit
6a8a9a0272
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ void *xRingbufferReceiveUpToFromISR(RingbufHandle_t ringbuf, size_t *item_size,
|
|||
configASSERT(rb);
|
||||
configASSERT(rb->flags & flag_bytebuf);
|
||||
portENTER_CRITICAL_ISR(&rb->mux);
|
||||
itemData=rb->getItemFromRingbufImpl(rb, item_size, 0);
|
||||
itemData=rb->getItemFromRingbufImpl(rb, item_size, wanted_size);
|
||||
portEXIT_CRITICAL_ISR(&rb->mux);
|
||||
return (void*)itemData;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue