diff --git a/src/TinyGsmClientSequansMonarch.h b/src/TinyGsmClientSequansMonarch.h index ae05bf1..aa77e66 100644 --- a/src/TinyGsmClientSequansMonarch.h +++ b/src/TinyGsmClientSequansMonarch.h @@ -98,7 +98,7 @@ class TinyGsmSequansMonarch } else { this->mux = (mux % TINY_GSM_MUX_COUNT) + 1; } - at->sockets[mux % TINY_GSM_MUX_COUNT] = this; + at->sockets[this->mux % TINY_GSM_MUX_COUNT] = this; return true; }