diff --git a/src/MF_DigInMux/DigInMux.cpp b/src/MF_DigInMux/DigInMux.cpp index 238be323..11b27ff5 100644 --- a/src/MF_DigInMux/DigInMux.cpp +++ b/src/MF_DigInMux/DigInMux.cpp @@ -48,7 +48,7 @@ namespace DigInMux void Clear() { for (uint8_t i = 0; i < digInMuxRegistered; i++) { - digInMux[digInMuxRegistered]->detach(); + digInMux[i]->detach(); } digInMuxRegistered = 0; #ifdef DEBUG2CMDMESSENGER