mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-01 02:01:59 +08:00
Add missing debug pipe
as some function need a defined pipe now for output
This commit is contained in:
parent
3397ac9c67
commit
0e749c454d
@ -122,17 +122,21 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#include <FS.h>*/
|
#include <FS.h>*/
|
||||||
|
#define DEBUG_PIPE NO_PIPE
|
||||||
#define LOG(string) {FSFILE logfile = SPIFFS.open("/log.txt", "a+");logfile.print(string);logfile.close();}
|
#define LOG(string) {FSFILE logfile = SPIFFS.open("/log.txt", "a+");logfile.print(string);logfile.close();}
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEBUG_OUTPUT_SERIAL
|
#ifdef DEBUG_OUTPUT_SERIAL
|
||||||
#define LOG(string) {Serial.print(string);}
|
#define LOG(string) {Serial.print(string);}
|
||||||
|
#define DEBUG_PIPE SERIAL_PIPE
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEBUG_OUTPUT_TCP
|
#ifdef DEBUG_OUTPUT_TCP
|
||||||
#include "bridge.h"
|
#include "bridge.h"
|
||||||
#define LOG(string) {BRIDGE::send2TCP(string);}
|
#define LOG(string) {BRIDGE::send2TCP(string);}
|
||||||
|
#define DEBUG_PIPE TCP_PIPE
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define LOG(string) {}
|
#define LOG(string) {}
|
||||||
|
#define DEBUG_PIPE NO_PIPE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SDCARD_FEATURE
|
#ifdef SDCARD_FEATURE
|
||||||
@ -159,7 +163,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#include "wifi.h"
|
#include "wifi.h"
|
||||||
//version and sources location
|
//version and sources location
|
||||||
#define FW_VERSION "0.9.72"
|
#define FW_VERSION "0.9.75"
|
||||||
#define REPOSITORY "https://github.com/luc-github/ESP3D"
|
#define REPOSITORY "https://github.com/luc-github/ESP3D"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -100,7 +100,7 @@ void setup()
|
|||||||
delay(2000);
|
delay(2000);
|
||||||
Serial.println(F("M117 ESP EEPROM reset"));
|
Serial.println(F("M117 ESP EEPROM reset"));
|
||||||
#ifdef DEBUG_ESP3D
|
#ifdef DEBUG_ESP3D
|
||||||
CONFIG::print_config();
|
CONFIG::print_config(DEBUG_PIPE);
|
||||||
delay(1000);
|
delay(1000);
|
||||||
#endif
|
#endif
|
||||||
CONFIG::reset_config();
|
CONFIG::reset_config();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user