Skip to content

Commit

Permalink
cdc_uart: avoid compilation warning if UART LEDs not used
Browse files Browse the repository at this point in the history
  • Loading branch information
P33M committed Feb 27, 2023
1 parent fbc4116 commit c8eb077
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cdc_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ static uint8_t rx_buf[CFG_TUD_CDC_RX_BUFSIZE];
// Actually s^-1 so 25ms
#define DEBOUNCE_MS 40
static uint debounce_ticks = 5;

#ifdef PICOPROBE_UART_TX_LED
static uint tx_led_debounce;
#endif

#ifdef PICOPROBE_UART_RX_LED
static uint rx_led_debounce;
#endif

void cdc_uart_init(void) {
gpio_set_function(PICOPROBE_UART_TX, GPIO_FUNC_UART);
Expand Down

0 comments on commit c8eb077

Please sign in to comment.