mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-12 09:36:59 +00:00
[ESPEasySerial] Fix compile errors.
This commit is contained in:
@@ -190,7 +190,7 @@ void ESPeasySerial::flush(void)
|
||||
}
|
||||
}
|
||||
|
||||
int ESPeasySerial::baudRate(void)
|
||||
int ESPeasySerial::getBaudRate() const
|
||||
{
|
||||
if (!isValid()) {
|
||||
return 0;
|
||||
|
||||
@@ -3,23 +3,3 @@
|
||||
ESPEasySerial_Port_base::ESPEasySerial_Port_base() {}
|
||||
ESPEasySerial_Port_base::~ESPEasySerial_Port_base() {}
|
||||
|
||||
/*
|
||||
#ifdef ESP8266
|
||||
void ESPEasySerial_Port_base::setPortConfig(
|
||||
unsigned long baud,
|
||||
SerialConfig config,
|
||||
SerialMode mode)
|
||||
{
|
||||
_config.setPortConfig(baud, config, mode);
|
||||
}
|
||||
|
||||
#endif // ifdef ESP8266
|
||||
|
||||
#ifdef ESP32
|
||||
void ESPEasySerial_Port_base::setPortConfig(unsigned long baud, uint32_t config)
|
||||
{
|
||||
_config.setPortConfig(baud, config);
|
||||
}
|
||||
|
||||
#endif // ifdef ESP32
|
||||
*/
|
||||
@@ -75,11 +75,6 @@ public:
|
||||
virtual size_t setRxBufferSize(size_t new_size) = 0;
|
||||
virtual size_t setTxBufferSize(size_t new_size) = 0;
|
||||
|
||||
|
||||
unsigned long getBaudRate() const {
|
||||
return _config.baud;
|
||||
}
|
||||
|
||||
const ESPEasySerialConfig& getSerialConfig() const {
|
||||
return _config;
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ void begin(unsigned long baud, uint32_t config);
|
||||
size_t write(const uint8_t *buffer,
|
||||
size_t size);
|
||||
size_t write(const char *buffer);
|
||||
int baudRate(void);
|
||||
int getBaudRate() const;
|
||||
|
||||
#if defined(ESP8266)
|
||||
size_t readBytes(char *buffer,
|
||||
|
||||
Reference in New Issue
Block a user