auralix / alx-202-af-10-1-auralix-c-lib

GNU General Public License v3.0
0 stars 0 forks source link

AlxAdxl355 - Decide if we will handle FIFO overflow as error, or we will discard overflow data.. #68

Open tomazvidovic opened 8 months ago

tomazvidovic commented 8 months ago
    // #4 Write acceleration data to FIFO
    status = AlxFifo_WriteMulti(&me->fifo, (uint8_t*)&me->xyz_g, sizeof(AlxAdxl355_Xyz_g));
    if (status == AlxFifo_ErrFull)
    {
        // TV: TODO: Decide if we will handle FIFO overflow as error, or we will discard overflow data..
        // For now we will discard additional overflow data..
        return status;
    }