diff --git a/src/TinyGsmClientXBee.h b/src/TinyGsmClientXBee.h index 6d08d84..89255f9 100644 --- a/src/TinyGsmClientXBee.h +++ b/src/TinyGsmClientXBee.h @@ -275,7 +275,7 @@ public: commandMode(); sendAT(GF("SM"),1); waitResponse(); - if (beeType != S6B) { + if (beeType == S6B) { sendAT(GF("SO"),200); waitResponse(); }