Fix in Power reg handling
This commit is contained in:
parent
4f15f54c75
commit
bac84ef3ad
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue