From 223314804d530b37bb02b2bad96a5fe063df903c Mon Sep 17 00:00:00 2001 From: wir3z Date: Wed, 22 Dec 2021 10:22:16 -0700 Subject: [PATCH] Removed external function call, referenced header. --- lib/default/TasmotaSerial-3.3.0/src/TasmotaSerial.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/default/TasmotaSerial-3.3.0/src/TasmotaSerial.cpp b/lib/default/TasmotaSerial-3.3.0/src/TasmotaSerial.cpp index a678e2e16..81fc94834 100644 --- a/lib/default/TasmotaSerial-3.3.0/src/TasmotaSerial.cpp +++ b/lib/default/TasmotaSerial-3.3.0/src/TasmotaSerial.cpp @@ -29,6 +29,11 @@ extern "C" { #ifdef ESP8266 +// added to access kTasmotaSerialConfig +#include "..\..\..\..\tasmota\tasmota_compat.h" +#include "..\..\..\..\tasmota\tasmota.h" + + void IRAM_ATTR callRxRead(void *self) { ((TasmotaSerial*)self)->rxRead(); }; // As the Arduino attachInterrupt has no parameter, lists of objects @@ -140,7 +145,7 @@ bool TasmotaSerial::begin(uint32_t speed, uint32_t config) { if (m_hardserial) { #ifdef ESP8266 Serial.flush(); - Serial.begin(speed, (SerialConfig)ConvertSerialConfig(config)); + Serial.begin(speed, (SerialConfig)pgm_read_byte(kTasmotaSerialConfig + config)); if (m_hardswap) { Serial.swap(); }