mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
[Cleanup] Add 'override' to virtual functions libs changed for ESPEasy
This commit is contained in:
@@ -19,10 +19,10 @@ public:
|
|||||||
|
|
||||||
void begin(long speed);
|
void begin(long speed);
|
||||||
void end();
|
void end();
|
||||||
int peek(void);
|
int peek(void) override;
|
||||||
size_t write(uint8_t val) override;
|
size_t write(uint8_t val) override;
|
||||||
size_t write(const uint8_t *buffer,
|
size_t write(const uint8_t *buffer,
|
||||||
size_t size);
|
size_t size) override;
|
||||||
int read(void) override;
|
int read(void) override;
|
||||||
size_t readBytes(char *buffer,
|
size_t readBytes(char *buffer,
|
||||||
size_t size) override;
|
size_t size) override;
|
||||||
|
|||||||
@@ -86,12 +86,12 @@ public:
|
|||||||
#endif // ifdef ESP32
|
#endif // ifdef ESP32
|
||||||
|
|
||||||
void end();
|
void end();
|
||||||
int peek(void);
|
int peek(void) override;
|
||||||
size_t write(uint8_t val) override;
|
size_t write(uint8_t val) override;
|
||||||
int read(void) override;
|
int read(void) override;
|
||||||
int read(uint8_t *buffer, size_t size);
|
int read(uint8_t *buffer, size_t size);
|
||||||
int available(void) override;
|
int available(void) override;
|
||||||
int availableForWrite(void);
|
int availableForWrite(void) override;
|
||||||
void flush(void) override;
|
void flush(void) override;
|
||||||
|
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ public:
|
|||||||
|
|
||||||
// HardwareSerial specific:
|
// HardwareSerial specific:
|
||||||
size_t write(const uint8_t *buffer,
|
size_t write(const uint8_t *buffer,
|
||||||
size_t size);
|
size_t size) override;
|
||||||
size_t write(const char *buffer);
|
size_t write(const char *buffer);
|
||||||
int getBaudRate() const;
|
int getBaudRate() const;
|
||||||
|
|
||||||
|
|||||||
@@ -38,15 +38,15 @@ public:
|
|||||||
|
|
||||||
void begin(long speed);
|
void begin(long speed);
|
||||||
|
|
||||||
int peek();
|
int peek() override;
|
||||||
|
|
||||||
virtual size_t write(uint8_t byte);
|
virtual size_t write(uint8_t byte) override;
|
||||||
|
|
||||||
virtual int read();
|
virtual int read() override;
|
||||||
|
|
||||||
virtual int available();
|
virtual int available() override;
|
||||||
|
|
||||||
virtual void flush();
|
virtual void flush() override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ class OLEDDisplay : public Print {
|
|||||||
void drawLogBuffer(uint16_t x, uint16_t y);
|
void drawLogBuffer(uint16_t x, uint16_t y);
|
||||||
|
|
||||||
// Implementent needed function to be compatible with Print class
|
// Implementent needed function to be compatible with Print class
|
||||||
size_t write(uint8_t c);
|
size_t write(uint8_t c) override;
|
||||||
size_t write(const char* s);
|
size_t write(const char* s);
|
||||||
|
|
||||||
uint8_t *buffer = NULL;
|
uint8_t *buffer = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user