diff --git a/rfm69device.go b/rfm69device.go index 06df1e2..2ff23a1 100644 --- a/rfm69device.go +++ b/rfm69device.go @@ -201,7 +201,7 @@ func (r *Device) SetMode(newMode byte) error { return err } - if newMode == RF_OPMODE_RECEIVER || newMode == RF_OPMODE_TRANSMITTER { + if r.isRFM69HW && (newMode == RF_OPMODE_RECEIVER || newMode == RF_OPMODE_TRANSMITTER) { err = r.setHighPowerRegs(newMode == RF_OPMODE_TRANSMITTER) if err != nil { return err