bugfix: ring buffer, fix api xRingbufferReceiveUpToFromISR

This commit is contained in:
Wangjialin 2016-12-20 01:13:03 +08:00
parent 1ed584f896
commit 6a8a9a0272

View file

@ -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;
}