mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ringbuffer_receive_upto_api' into 'master'
bugfix: ring buffer Fix API xRingbufferReceiveUpToFromISR See merge request !327
This commit is contained in:
commit
4f3ff1cf7e
@ -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…
x
Reference in New Issue
Block a user