Poer handling

This commit is contained in:
Friedl Ulrich 2015-02-08 22:04:06 +01:00
parent bac84ef3ad
commit 17f95aec5f

View file

@ -201,7 +201,7 @@ func (r *Device) SetMode(newMode byte) error {
return err
}
if newMode == RF_OPMODE_RECEIVER || newMode == RF_OPMODE_TRANSMITTER {
if r.isRFM69HW && (newMode == RF_OPMODE_RECEIVER || newMode == RF_OPMODE_TRANSMITTER) {
err = r.setHighPowerRegs(newMode == RF_OPMODE_TRANSMITTER)
if err != nil {
return err