mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
fix typo
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#ifndef PROGMEM
|
#ifndef PROGMEM
|
||||||
#define PROGMEM
|
#define PROGMEM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char HA_DEVICE[] PROGMEM = "device";
|
const char HA_DEVICE[] PROGMEM = "device";
|
||||||
|
|||||||
@@ -24,18 +24,18 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
#ifdef LED_STATUS_PIN
|
#ifdef LED_STATUS_PIN
|
||||||
pinMode(LED_STATUS_PIN, OUTPUT);
|
pinMode(LED_STATUS_PIN, OUTPUT);
|
||||||
digitalWrite(LED_STATUS_PIN, false);
|
digitalWrite(LED_STATUS_PIN, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ESP32)
|
#if defined(ESP32)
|
||||||
heapSize = ESP.getHeapSize();
|
heapSize = ESP.getHeapSize();
|
||||||
#elif defined(ESP8266)
|
#elif defined(ESP8266)
|
||||||
heapSize = 81920;
|
heapSize = 81920;
|
||||||
#elif
|
#elif
|
||||||
heapSize = 99999;
|
heapSize = 99999;
|
||||||
#endif
|
#endif
|
||||||
minFreeHeapSize = heapSize;
|
minFreeHeapSize = heapSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,19 +87,19 @@ protected:
|
|||||||
tOt->enable();
|
tOt->enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LED_STATUS_PIN
|
#ifdef LED_STATUS_PIN
|
||||||
ledStatus(LED_STATUS_PIN);
|
ledStatus(LED_STATUS_PIN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_TELNET
|
#if USE_TELNET
|
||||||
yield();
|
yield();
|
||||||
|
|
||||||
// anti memory leak
|
// anti memory leak
|
||||||
TelnetStream.flush();
|
TelnetStream.flush();
|
||||||
while (TelnetStream.available() > 0) {
|
while (TelnetStream.available() > 0) {
|
||||||
TelnetStream.read();
|
TelnetStream.read();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (settings.debug) {
|
if (settings.debug) {
|
||||||
unsigned int freeHeapSize = ESP.getFreeHeap();
|
unsigned int freeHeapSize = ESP.getFreeHeap();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -83,6 +83,6 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
#if defined(ESP32)
|
#if defined(ESP32)
|
||||||
vTaskDelete(NULL);
|
vTaskDelete(NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user