From b7ec66e33af1e24b763d855545d921ec5957f61a Mon Sep 17 00:00:00 2001 From: Nicholas R Dinsmore Date: Tue, 16 Feb 2021 23:08:08 -0500 Subject: This fixes the overflow mathmatic in the fifo --- src/osal/osal_pico.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/osal') diff --git a/src/osal/osal_pico.h b/src/osal/osal_pico.h index 1788e5c8d..79054ddfa 100644 --- a/src/osal/osal_pico.h +++ b/src/osal/osal_pico.h @@ -123,6 +123,8 @@ typedef osal_queue_def_t* osal_queue_t; .depth = _depth, \ .item_size = sizeof(_type), \ .overwritable = false, \ + .max_pointer_idx = 2*_depth-1, \ + .non_used_index_space = UINT16_MAX - (2*_depth-1), \ }\ } -- cgit v1.3.1