diff --git a/src/picoboot.pio b/src/picoboot.pio index 1bb30fb..5f32a43 100644 --- a/src/picoboot.pio +++ b/src/picoboot.pio @@ -35,8 +35,7 @@ wait_bit: mov x, y ; Copy y value to x, it represents number of bits in the transfer set pindirs 1 ; Set data line as output - out pins, 1 ; Output single IPL bit - jmp x-- on_rising_edge ; Decrement x + jmp write_bit ; Output first IPL bit from OSR on_rising_edge: wait 0 gpio PIN_CLK ; Sample until rising edge on CLK line