mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bugfix: ring buffer, fix api xRingbufferReceiveUpToFromISR
This commit is contained in:
parent
1ed584f896
commit
6a8a9a0272
@ -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 New Issue
Block a user