From 1ba7b3686673b9a2699143d5eaa0f75d5a826dcc Mon Sep 17 00:00:00 2001 From: freemp Date: Sun, 31 Mar 2019 07:33:19 +0200 Subject: [PATCH] Update SoftwareSerial.h Prevent 'delete-non-virtual-dtor' compiler warning when trying to deallocate SoftwareSerial object by applying 'delete' operator. --- SoftwareSerial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftwareSerial.h b/SoftwareSerial.h index 3713448..dd9e767 100644 --- a/SoftwareSerial.h +++ b/SoftwareSerial.h @@ -117,7 +117,7 @@ class SoftwareSerial : public Stream public: // public methods SoftwareSerial(uint8_t receivePin, uint8_t transmitPin, bool inverse_logic = false); - ~SoftwareSerial(); + virtual ~SoftwareSerial(); void begin(long speed); bool listen(); void end();