From 9a835019823715930c1e2087dd9394ed38fecd0a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 14 Mar 2021 15:05:56 -0500 Subject: [PATCH] Fixed initial settings for program_struct to allow more than 1 program per pio --- ports/raspberrypi/common-hal/rp2pio/StateMachine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/common-hal/rp2pio/StateMachine.c b/ports/raspberrypi/common-hal/rp2pio/StateMachine.c index 56a7ab668d..e71e1957a4 100644 --- a/ports/raspberrypi/common-hal/rp2pio/StateMachine.c +++ b/ports/raspberrypi/common-hal/rp2pio/StateMachine.c @@ -172,7 +172,7 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self, pio_program_t program_struct = { .instructions = (uint16_t*) program, .length = program_len, - .origin = 0 + .origin = -1 }; for (size_t i = 0; i < NUM_PIOS; i++) { PIO pio = pio_instances[i];