From bac84ef3ad2bcf272833b3e2391e0f2e17037b4c Mon Sep 17 00:00:00 2001 From: Friedl Ulrich Date: Sun, 8 Feb 2015 21:51:09 +0100 Subject: [PATCH] Fix in Power reg handling --- rfm69device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfm69device.go b/rfm69device.go index 31f3750..06df1e2 100644 --- a/rfm69device.go +++ b/rfm69device.go @@ -202,7 +202,7 @@ func (r *Device) SetMode(newMode byte) error { } if newMode == RF_OPMODE_RECEIVER || newMode == RF_OPMODE_TRANSMITTER { - err = r.setHighPowerRegs(newMode == RF_OPMODE_RECEIVER) + err = r.setHighPowerRegs(newMode == RF_OPMODE_TRANSMITTER) if err != nil { return err }