We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 090c5cd commit 6f7dc67Copy full SHA for 6f7dc67
src/rp2_common/hardware_pio/pio.c
@@ -54,7 +54,7 @@ static_assert(PIO_INSTRUCTION_COUNT <= 32, "");
54
static uint32_t _used_instruction_space[2];
55
56
static int _pio_find_offset_for_program(PIO pio, const pio_program_t *program) {
57
- assert(program->length < PIO_INSTRUCTION_COUNT);
+ assert(program->length <= PIO_INSTRUCTION_COUNT);
58
uint32_t used_mask = _used_instruction_space[pio_get_index(pio)];
59
uint32_t program_mask = (1u << program->length) - 1;
60
if (program->origin >= 0) {
0 commit comments