diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index ccdcec12..917560ad 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -1219,7 +1219,7 @@ bool SX127x::findChip(uint8_t ver) { } int16_t SX127x::setMode(uint8_t mode) { - return(_mod->SPIsetRegValue(SX127X_REG_OP_MODE, mode, 2, 0, 2)); + return(_mod->SPIsetRegValue(SX127X_REG_OP_MODE, mode, 2, 0, 5)); } int16_t SX127x::getActiveModem() {