Skip to content

Commit bd2ac8f

Browse files
eric-wieserfacchinm
authored andcommitted
Add virtual keyword to virtual method override, for clarity
These are already treated as virtual by the compiler anyway. Ideally we'd have the override keyword here too, but I'm not sure if the lcd compiler supports this.
1 parent f5cbedd commit bd2ac8f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cores/arduino/UARTClass.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ class UARTClass : public HardwareSerial
4747
void begin(const uint32_t dwBaudRate);
4848
void begin(const uint32_t dwBaudRate, const UARTModes config);
4949
void end(void);
50-
int available(void);
50+
virtual int available(void);
5151
int availableForWrite(void);
52-
int peek(void);
53-
int read(void);
54-
void flush(void);
55-
size_t write(const uint8_t c);
52+
virtual int peek(void);
53+
virtual int read(void);
54+
virtual void flush(void);
55+
virtual size_t write(const uint8_t c);
5656
using Print::write; // pull in write(str) and write(buf, size) from Print
5757

5858
void setInterruptPriority(uint32_t priority);

0 commit comments

Comments
 (0)