Ensure debug is defined earlier
This commit is contained in:
parent
84aadf3a64
commit
6784e0e720
@ -246,16 +246,17 @@ safe_mode_t port_init(void) {
|
|||||||
|
|
||||||
circuitpython_task = xTaskGetCurrentTaskHandle();
|
circuitpython_task = xTaskGetCurrentTaskHandle();
|
||||||
|
|
||||||
|
#if !defined(DEBUG)
|
||||||
|
#define DEBUG (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Send the ROM output out of the UART. This includes early logs.
|
// Send the ROM output out of the UART. This includes early logs.
|
||||||
#ifdef DEBUG
|
#if DEBUG
|
||||||
ets_install_uart_printf();
|
ets_install_uart_printf();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
heap = NULL;
|
heap = NULL;
|
||||||
|
heap_size = 0;
|
||||||
#ifndef DEBUG
|
|
||||||
#define DEBUG (0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define pin_GPIOn(n) pin_GPIO##n
|
#define pin_GPIOn(n) pin_GPIO##n
|
||||||
#define pin_GPIOn_EXPAND(x) pin_GPIOn(x)
|
#define pin_GPIOn_EXPAND(x) pin_GPIOn(x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user