Skip to content

Commit 0be2340

Browse files
authored
Merge pull request adafruit#10010 from jepler/fix-pio-program-offset
raspberrypi: Honor the requested offset= of a StateMachine
2 parents 8651598 + 9c42a48 commit 0be2340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/rp2pio/StateMachine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
322322
pio_program_t program_struct = {
323323
.instructions = (uint16_t *)program,
324324
.length = program_len,
325-
.origin = -1
325+
.origin = offset,
326326
};
327327
PIO pio;
328328
uint state_machine;

0 commit comments

Comments
 (0)