From c67a12e460bb2e099d4655e87742618879812fc9 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Fri, 12 Jul 2019 17:33:36 -0400 Subject: [PATCH] Made destructor virtual to allow object deletion --- SoftwareWire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftwareWire.h b/SoftwareWire.h index f9cf033..c7f2f7d 100644 --- a/SoftwareWire.h +++ b/SoftwareWire.h @@ -21,7 +21,7 @@ class SoftwareWire : public TwoWire public: SoftwareWire(); SoftwareWire(uint8_t sdaPin, uint8_t sclPin, boolean pullups = true, boolean detectClockStretch = true); - ~SoftwareWire(); + virtual ~SoftwareWire(); void end(); void begin();