1
Diff: radio_sx128x.cpp
- Revision:
- 5:ab124d3842a8
- Parent:
- 1:e79b0a55135f
- Child:
- 7:ba81f66e56d1
--- a/radio_sx128x.cpp Mon Aug 20 14:07:47 2018 -0700 +++ b/radio_sx128x.cpp Sun Nov 25 17:12:03 2018 -0800 @@ -607,7 +607,11 @@ void Radio::set_tx_dbm(int8_t dbm) { - radio.set_tx_dbm(dbm); + if (dbm == PA_OFF_DBM) { + /* TODO: shut off PA */ + } else { + radio.set_tx_dbm(dbm); + } } void Radio::SetTxContinuousWave(unsigned hz, int8_t dbm, unsigned timeout_us)