From 335a8e7b0d620b5680df01b85998f40cd64922eb Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Mon, 2 Jan 2017 11:24:02 +0000 Subject: [PATCH] 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. --- hardware/arduino/sam/cores/arduino/UARTClass.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hardware/arduino/sam/cores/arduino/UARTClass.h b/hardware/arduino/sam/cores/arduino/UARTClass.h index 3747d8beb10..57b39a04c01 100644 --- a/hardware/arduino/sam/cores/arduino/UARTClass.h +++ b/hardware/arduino/sam/cores/arduino/UARTClass.h @@ -47,12 +47,12 @@ class UARTClass : public HardwareSerial void begin(const uint32_t dwBaudRate); void begin(const uint32_t dwBaudRate, const UARTModes config); void end(void); - int available(void); + virtual int available(void); int availableForWrite(void); - int peek(void); - int read(void); - void flush(void); - size_t write(const uint8_t c); + virtual int peek(void); + virtual int read(void); + virtual void flush(void); + virtual size_t write(const uint8_t c); using Print::write; // pull in write(str) and write(buf, size) from Print void setInterruptPriority(uint32_t priority);