This commit is contained in:
Yurii
2023-11-17 21:41:38 +03:00
parent 4b9ebeaa40
commit 9f24efb0ab
4 changed files with 37 additions and 27 deletions

View File

@@ -91,7 +91,7 @@ protected:
ledStatus(LED_STATUS_PIN); ledStatus(LED_STATUS_PIN);
#endif #endif
#ifdef USE_TELNET #if USE_TELNET
yield(); yield();
// anti memory leak // anti memory leak

View File

@@ -2,7 +2,6 @@
#define OT_GATEWAY_REPO "https://github.com/Laxilef/OTGateway" #define OT_GATEWAY_REPO "https://github.com/Laxilef/OTGateway"
#define AP_SSID "OpenTherm Gateway" #define AP_SSID "OpenTherm Gateway"
#define AP_PASSWORD "otgateway123456" #define AP_PASSWORD "otgateway123456"
#define USE_TELNET
#define EMERGENCY_TIME_TRESHOLD 120000 #define EMERGENCY_TIME_TRESHOLD 120000
#define MQTT_RECONNECT_INTERVAL 5000 #define MQTT_RECONNECT_INTERVAL 5000
@@ -17,6 +16,17 @@
#define SETTINGS_VALID_VALUE "stvalid" // only 8 chars! #define SETTINGS_VALID_VALUE "stvalid" // only 8 chars!
#ifndef WM_DEBUG_MODE
#define WM_DEBUG_MODE WM_DEBUG_NOTIFY
#endif
#ifndef USE_TELNET
#define USE_TELNET true
#endif
#ifndef DEBUG_BY_DEFAULT
#define DEBUG_BY_DEFAULT false
#endif
#ifndef OT_IN_PIN_DEFAULT #ifndef OT_IN_PIN_DEFAULT
#define OT_IN_PIN_DEFAULT 0 #define OT_IN_PIN_DEFAULT 0
@@ -34,7 +44,7 @@
#define SENSOR_INDOOR_PIN_DEFAULT 0 #define SENSOR_INDOOR_PIN_DEFAULT 0
#endif #endif
#ifdef USE_TELNET #if USE_TELNET
#define INFO_STREAM TelnetStream #define INFO_STREAM TelnetStream
#define WARN_STREAM TelnetStream #define WARN_STREAM TelnetStream
#define ERROR_STREAM TelnetStream #define ERROR_STREAM TelnetStream

View File

@@ -36,7 +36,7 @@ MainTask* tMain;
void setup() { void setup() {
#ifndef USE_TELNET #if USE_TELNET
Serial.begin(115200); Serial.begin(115200);
Serial.println("\n\n"); Serial.println("\n\n");
#endif #endif