Skip to content

Commit

Permalink
compability with latest Arduino Core 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Jan 24, 2024
1 parent 51e6fd9 commit 34de846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/default/TasmotaSerial-3.6.0/src/TasmotaSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 34de846

Please sign in to comment.