Skip to content

pio_can_add_program and pio_add_program may not work for maximum size PIO program #261

Closed
@kevinjwalters

Description

@kevinjwalters

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions