diff options
| author | root <siehputz@gmail.com> | 2021-03-14 15:05:56 -0500 |
|---|---|---|
| committer | root <siehputz@gmail.com> | 2021-03-14 15:05:56 -0500 |
| commit | 9a835019823715930c1e2087dd9394ed38fecd0a (patch) | |
| tree | 1ca22d6b0c3944067cc625e04d9ca9a95a44f41e | |
| parent | 4b567178f1ac13b47846dd124e0ef6cf0a5b4294 (diff) | |
Fixed initial settings for program_struct to allow more than 1 program per pio
| -rw-r--r-- | ports/raspberrypi/common-hal/rp2pio/StateMachine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/raspberrypi/common-hal/rp2pio/StateMachine.c b/ports/raspberrypi/common-hal/rp2pio/StateMachine.c index 56a7ab668..e71e1957a 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]; |
