Add missing debug pipe

as some function need a defined pipe now for output
This commit is contained in:
Luc 2016-12-04 16:52:06 +01:00
parent 3397ac9c67
commit 0e749c454d
2 changed files with 6 additions and 2 deletions

View File

@ -122,17 +122,21 @@
#endif
#endif
#include <FS.h>*/
#define DEBUG_PIPE NO_PIPE
#define LOG(string) {FSFILE logfile = SPIFFS.open("/log.txt", "a+");logfile.print(string);logfile.close();}
#endif
#ifdef DEBUG_OUTPUT_SERIAL
#define LOG(string) {Serial.print(string);}
#define DEBUG_PIPE SERIAL_PIPE
#endif
#ifdef DEBUG_OUTPUT_TCP
#include "bridge.h"
#define LOG(string) {BRIDGE::send2TCP(string);}
#define DEBUG_PIPE TCP_PIPE
#endif
#else
#define LOG(string) {}
#define DEBUG_PIPE NO_PIPE
#endif
#ifdef SDCARD_FEATURE
@ -159,7 +163,7 @@ extern "C" {
}
#include "wifi.h"
//version and sources location
#define FW_VERSION "0.9.72"
#define FW_VERSION "0.9.75"
#define REPOSITORY "https://github.com/luc-github/ESP3D"
typedef enum {

View File

@ -100,7 +100,7 @@ void setup()
delay(2000);
Serial.println(F("M117 ESP EEPROM reset"));
#ifdef DEBUG_ESP3D
CONFIG::print_config();
CONFIG::print_config(DEBUG_PIPE);
delay(1000);
#endif
CONFIG::reset_config();