Fix in power level

master
Friedl Ulrich 10 years ago
parent 82fc95a00d
commit 9de6143724

@ -37,11 +37,12 @@ type Data struct {
// NewDevice creates a new device // NewDevice creates a new device
func NewDevice(spi *SPIDevice, gpio gpio.Pin, nodeID, networkID byte, isRfm69HW bool) (*Device, error) { func NewDevice(spi *SPIDevice, gpio gpio.Pin, nodeID, networkID byte, isRfm69HW bool) (*Device, error) {
ret := &Device{ ret := &Device{
SpiDevice: spi, SpiDevice: spi,
gpio: gpio, gpio: gpio,
network: networkID, network: networkID,
address: nodeID, address: nodeID,
isRFM69HW: isRfm69HW, isRFM69HW: isRfm69HW,
powerLevel: 31,
} }
log.Println("before setup") log.Println("before setup")

Loading…
Cancel
Save