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();