I'm not famiIiar with this code but was flicking through it and perhaps this should be <= rather than <?
|
static int _pio_find_offset_for_program(PIO pio, const pio_program_t *program) { |
|
assert(program->length < PIO_INSTRUCTION_COUNT); |
This will probably only affect debug versions of the code/library?