Skip to content

Commit 3de81d3

Browse files
committed
Don't store rxfifo_obj if it can never be used
1 parent dee4879 commit 3de81d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ typedef struct {
5151
sm_buf_info current, once, loop;
5252
int background_stride_in_bytes;
5353
bool dma_completed, byteswap;
54+
#if PICO_PIO_VERSION > 0
5455
memorymap_addressrange_obj_t rxfifo_obj;
56+
#endif
5557
} rp2pio_statemachine_obj_t;
5658

5759
void reset_rp2pio_statemachine(void);

0 commit comments

Comments
 (0)