From f0b87350b5442072a03ebefbd6c41a5581dbec98 Mon Sep 17 00:00:00 2001 From: NachtRaveVL Date: Sun, 26 Mar 2023 13:54:30 -0700 Subject: [PATCH] minor destructor update --- src/Hydruino.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Hydruino.cpp b/src/Hydruino.cpp index 7fec707..e4322ec 100644 --- a/src/Hydruino.cpp +++ b/src/Hydruino.cpp @@ -70,6 +70,9 @@ Hydruino::~Hydruino() while (_objects.size()) { _objects.erase(_objects.begin()); } while (_pinOneWire.size()) { dropOneWireForPin(_pinOneWire.begin()->first); } while (_pinMuxers.size()) { _pinMuxers.erase(_pinMuxers.begin()); } +#ifndef HYDRO_DISABLE_MULTITASKING + while (_pinExpanders.size()) { _pinExpanders.erase(_pinExpanders.begin()); } +#endif deallocateEEPROM(); deallocateRTC(); deallocateSD();