From 9de61437249a90ae44eaef654d1836aa3f9b646e Mon Sep 17 00:00:00 2001 From: Friedl Ulrich Date: Sun, 8 Feb 2015 21:15:13 +0100 Subject: [PATCH] Fix in power level --- rfm69device.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rfm69device.go b/rfm69device.go index 900d46a..9d1b7fe 100644 --- a/rfm69device.go +++ b/rfm69device.go @@ -37,11 +37,12 @@ type Data struct { // NewDevice creates a new device func NewDevice(spi *SPIDevice, gpio gpio.Pin, nodeID, networkID byte, isRfm69HW bool) (*Device, error) { ret := &Device{ - SpiDevice: spi, - gpio: gpio, - network: networkID, - address: nodeID, - isRFM69HW: isRfm69HW, + SpiDevice: spi, + gpio: gpio, + network: networkID, + address: nodeID, + isRFM69HW: isRfm69HW, + powerLevel: 31, } log.Println("before setup")