Fix in Power reg handling

master
Friedl Ulrich 10 years ago
parent 4f15f54c75
commit bac84ef3ad

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

Loading…
Cancel
Save