Skip to content

Commit 6784e0e

Browse files
committed
Ensure debug is defined earlier
1 parent 84aadf3 commit 6784e0e

File tree

1 file changed

+6
-5
lines changed
  • ports/espressif/supervisor

1 file changed

+6
-5
lines changed

ports/espressif/supervisor/port.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,17 @@ safe_mode_t port_init(void) {
246246

247247
circuitpython_task = xTaskGetCurrentTaskHandle();
248248

249+
#if !defined(DEBUG)
250+
#define DEBUG (0)
251+
#endif
252+
249253
// Send the ROM output out of the UART. This includes early logs.
250-
#ifdef DEBUG
254+
#if DEBUG
251255
ets_install_uart_printf();
252256
#endif
253257

254258
heap = NULL;
255-
256-
#ifndef DEBUG
257-
#define DEBUG (0)
258-
#endif
259+
heap_size = 0;
259260

260261
#define pin_GPIOn(n) pin_GPIO##n
261262
#define pin_GPIOn_EXPAND(x) pin_GPIOn(x)

0 commit comments

Comments
 (0)