Skip to content

Commit 02fb16a

Browse files
committed
fix build error
1 parent 3de81d3 commit 02fb16a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static uint add_program(PIO pio, const pio_program_t *program, int offset) {
181181
}
182182
}
183183

184-
static pio_fifo_join compute_fifo_type(int fifo_type_in, bool rx_fifo, bool tx_fifo) {
184+
static enum pio_fifo_join compute_fifo_type(int fifo_type_in, bool rx_fifo, bool tx_fifo) {
185185
if (fifo_type_in != PIO_FIFO_JOIN_AUTO) {
186186
return fifo_type_in;
187187
}
@@ -194,7 +194,7 @@ static pio_fifo_join compute_fifo_type(int fifo_type_in, bool rx_fifo, bool tx_f
194194
return PIO_FIFO_JOIN_NONE;
195195
}
196196

197-
static int compute_fifo_depth(pio_fifo_join join) {
197+
static int compute_fifo_depth(enum pio_fifo_join join) {
198198
if (join == PIO_FIFO_JOIN_TX || join == PIO_FIFO_JOIN_RX) {
199199
return 8;
200200
}

0 commit comments

Comments
 (0)