8000 raspberrypi: Honor the requested offset= of a StateMachine · chbeer/circuitpython@9c42a48 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c42a48

Browse files
committed
raspberrypi: Honor the requested offset= of a StateMachine
The logic to do this was lost in my recent re-organization. Happily, just setting this field appropriately fixes it.
1 parent 65556b4 commit 9c42a48

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)
0