mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Merge pull request #1385 from MaBecker/wificonf
capsulate gdb with ifdef DEBUG (fix #1378)
This commit is contained in:
commit
08dabc3204
@ -96,10 +96,13 @@ SOURCES += targets/esp8266/uart.c \
|
||||
targets/esp8266/jshardware.c \
|
||||
targets/esp8266/i2c_master.c \
|
||||
targets/esp8266/esp8266_board_utils.c \
|
||||
targets/esp8266/gdbstub.c \
|
||||
targets/esp8266/gdbstub-entry.S \
|
||||
libs/network/esp8266/network_esp8266.c
|
||||
|
||||
ifdef DEBUG
|
||||
SOURCES += targets/esp8266/gdbstub.c \
|
||||
targets/esp8266/gdbstub-entry.S
|
||||
endif
|
||||
|
||||
# The tool used for building the firmware and flashing
|
||||
ESPTOOL ?= $(ESP8266_SDK_ROOT)/esptool/esptool.py
|
||||
|
||||
|
||||
@ -241,8 +241,10 @@ static void initDone() {
|
||||
os_printf("> initDone\n");
|
||||
otaInit(88);
|
||||
|
||||
extern void gdbstub_init();
|
||||
gdbstub_init();
|
||||
#ifdef DEBUG
|
||||
extern void gdbstub_init();
|
||||
gdbstub_init();
|
||||
#endif
|
||||
|
||||
// Discard any junk data in the input as this is a boot.
|
||||
//uart_rx_discard();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user