From 0e749c454df25c42ea0b25a07841f9ba13731a6c Mon Sep 17 00:00:00 2001 From: Luc Date: Sun, 4 Dec 2016 16:52:06 +0100 Subject: [PATCH] Add missing debug pipe as some function need a defined pipe now for output --- esp3d/config.h | 6 +++++- esp3d/esp3d.ino | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/esp3d/config.h b/esp3d/config.h index e324c638..26dd255c 100644 --- a/esp3d/config.h +++ b/esp3d/config.h @@ -122,17 +122,21 @@ #endif #endif #include */ + #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 { diff --git a/esp3d/esp3d.ino b/esp3d/esp3d.ino index 681a319c..1337d23f 100644 --- a/esp3d/esp3d.ino +++ b/esp3d/esp3d.ino @@ -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();