Ensure debug is defined earlier

This commit is contained in:
Jeff Epler 2023-09-05 11:59:35 -05:00
parent 84aadf3a64
commit 6784e0e720
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -246,16 +246,17 @@ safe_mode_t port_init(void) {
circuitpython_task = xTaskGetCurrentTaskHandle();
#if !defined(DEBUG)
#define DEBUG (0)
#endif
// Send the ROM output out of the UART. This includes early logs.
#ifdef DEBUG
#if DEBUG
ets_install_uart_printf();
#endif
heap = NULL;
#ifndef DEBUG
#define DEBUG (0)
#endif
heap_size = 0;
#define pin_GPIOn(n) pin_GPIO##n
#define pin_GPIOn_EXPAND(x) pin_GPIOn(x)