From 17f95aec5fa8d494ee2f83b0c448b3cf85ace73f Mon Sep 17 00:00:00 2001 From: Friedl Ulrich Date: Sun, 8 Feb 2015 22:04:06 +0100 Subject: [PATCH] Poer handling --- rfm69device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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