Skip to content

Commit eaebfc5

Browse files
committed
Fix bug where manual updates cache the previous command after a sequence abort.
1 parent 6bb9782 commit eaebfc5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

prawn_do/prawn_do.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,7 @@ void core1_entry() {
253253
else{
254254
// manual update
255255
uint32_t manual_state = command;
256-
// put new state into the TX FIFO
257-
pio_sm_put_blocking(pio, sm, manual_state);
258-
// pull FIFO into scratch register and update pins
259-
pio_sm_exec_wait_blocking(pio, sm, pio_encode_out(pio_pins, 32));
256+
pio_sm_set_pins_with_mask(pio, sm, manual_state, output_mask);
260257
if(debug){
261258
fast_serial_printf("Output commanded: %x\r\n", manual_state);
262259
}

0 commit comments

Comments
 (0)