mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
allow control of enabling debug and debug level from IDE
This commit is contained in:
@ -101,6 +101,9 @@ static void loop_wrapper() {
|
||||
preloop_update_frequency();
|
||||
if(!setup_done) {
|
||||
setup();
|
||||
#ifdef DEBUG_ESP_PORT
|
||||
DEBUG_ESP_PORT.setDebugOutput(true);
|
||||
#endif
|
||||
setup_done = true;
|
||||
}
|
||||
loop();
|
||||
|
@ -4,7 +4,9 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
//#define DEBUGV(...) ets_printf(__VA_ARGS__)
|
||||
#ifdef DEBUG_ESP_CORE
|
||||
#define DEBUGV(...) ets_printf(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifndef DEBUGV
|
||||
#define DEBUGV(...)
|
||||
|
Reference in New Issue
Block a user