Fix in Power reg handling

This commit is contained in:
Friedl Ulrich 2015-02-08 21:51:09 +01:00
parent 4f15f54c75
commit bac84ef3ad

View file

@ -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
}