There is a minor issue with the app_fifo library included with nRF5_SDK_11.0.0-2.alpha_bc3f6a0. If the app_fifo_write function is called with the parameter p_size set to 0, then it will write 1 byte into the FIFO instead of doing nothing.
There is a minor issue with the app_fifo library included with nRF5_SDK_11.0.0-2.alpha_bc3f6a0. If the app_fifo_write function is called with the parameter p_size set to 0, then it will write 1 byte into the FIFO instead of doing nothing.
Agreed... documentation does not say that size cannot be zero, so this should be allowed.
Seems like a bug inside app_fifo_write at the lines below
do
{
fifo_put(p_fifo, p_byte_array[index++]);
} while (index < write_size);
change this to
while (index < write_size)
{
fifo_put(p_fifo, p_byte_array[index++]);
};
seems like there is some activity in the ticket I made, so hopefully it will be fixed in next SDK11 release.
seems like there is some activity in the ticket I made, so hopefully it will be fixed in next SDK11 release.