mirror of https://github.com/arendst/Tasmota.git
Arduino Core 3.0.0 Platform 2024.01.12 (#20576)
* Core 3.0.0 latest support * compability with latest Arduino Core 3.0.0 * Platform 2024.01.12
This commit is contained in:
parent
cce5204177
commit
808e598b6d
|
@ -99,7 +99,11 @@ TasmotaSerial::TasmotaSerial(int receive_pin, int transmit_pin, int hardware_fal
|
|||
m_valid = true;
|
||||
}
|
||||
|
||||
#if ESP_IDF_VERSION_MAJOR >= 5
|
||||
void TasmotaSerial::end() {
|
||||
#else
|
||||
void TasmotaSerial::end(bool turnOffDebug) {
|
||||
#endif // ESP_IDF_VERSION_MAJOR >= 5
|
||||
#ifdef ESP8266
|
||||
if (m_hardserial) {
|
||||
// Serial.end(); // Keep active for logging
|
||||
|
@ -117,7 +121,11 @@ void TasmotaSerial::end(bool turnOffDebug) {
|
|||
#ifdef ESP32
|
||||
// Serial.printf("TSR: Freeing UART%d\n", m_uart);
|
||||
|
||||
#if ESP_IDF_VERSION_MAJOR >= 5
|
||||
TSerial->end();
|
||||
#else
|
||||
TSerial->end(turnOffDebug);
|
||||
#endif // ESP_IDF_VERSION_MAJOR >= 5
|
||||
bitClear(tasmota_serial_uart_bitmap, m_uart);
|
||||
#endif // ESP32
|
||||
}
|
||||
|
|
|
@ -45,7 +45,11 @@ class TasmotaSerial : public Stream {
|
|||
size_t getRxBufferSize() { return serial_buffer_size; }
|
||||
|
||||
bool begin(uint32_t speed = TM_SERIAL_BAUDRATE, uint32_t config = SERIAL_8N1);
|
||||
#if ESP_IDF_VERSION_MAJOR >= 5
|
||||
void end();
|
||||
#else
|
||||
void end(bool turnOffDebug = true);
|
||||
#endif // ESP_IDF_VERSION_MAJOR >= 5
|
||||
bool hardwareSerial(void);
|
||||
int peek(void);
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ build_unflags = ${esp32_defaults.build_unflags}
|
|||
build_flags = ${esp32_defaults.build_flags}
|
||||
|
||||
[core32_30]
|
||||
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.01.11/platform-espressif32.zip
|
||||
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.01.12/platform-espressif32.zip
|
||||
platform_packages =
|
||||
build_unflags = ${core32.build_unflags}
|
||||
build_flags = ${core32.build_flags}
|
||||
|
|
Loading…
Reference in New Issue