mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
Removed external function call, referenced header.
This commit is contained in:
parent
4554a5ba9e
commit
223314804d
@ -29,6 +29,11 @@ extern "C" {
|
|||||||
|
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
|
|
||||||
|
// added to access kTasmotaSerialConfig
|
||||||
|
#include "..\..\..\..\tasmota\tasmota_compat.h"
|
||||||
|
#include "..\..\..\..\tasmota\tasmota.h"
|
||||||
|
|
||||||
|
|
||||||
void IRAM_ATTR callRxRead(void *self) { ((TasmotaSerial*)self)->rxRead(); };
|
void IRAM_ATTR callRxRead(void *self) { ((TasmotaSerial*)self)->rxRead(); };
|
||||||
|
|
||||||
// As the Arduino attachInterrupt has no parameter, lists of objects
|
// 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) {
|
if (m_hardserial) {
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
Serial.flush();
|
Serial.flush();
|
||||||
Serial.begin(speed, (SerialConfig)ConvertSerialConfig(config));
|
Serial.begin(speed, (SerialConfig)pgm_read_byte(kTasmotaSerialConfig + config));
|
||||||
if (m_hardswap) {
|
if (m_hardswap) {
|
||||||
Serial.swap();
|
Serial.swap();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user