Merge pull request #4405 from DavePutz/issue_4237

Issue 4237 - Changed initial setting in program_struct
This commit is contained in:
Scott Shawcroft 2021-03-15 17:51:36 -07:00 committed by GitHub
commit f7a988b9b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];