fix: TBeam 1W ramp fixes
This commit is contained in:
1 parent
866498299e
commit
5956618bc8
4 files changed
+16
-3
No files matched your search
@@ -23,7 +23,16 @@ public:
|
||||
((CustomSX1262 *)_radio)->setMaxPayloadMillis(pm.payloadMillis);
|
||||
}
|
||||
|
||||
bool isReceivingPacket() override {
|
||||
#ifdef SX126X_PA_RAMP_TIME
|
||||
void setTxPower(int8_t dbm) override {
|
||||
RadioLibWrapper::setTxPower(dbm);
|
||||
// SX126x::setOutputPower() hardcodes a 200us PA ramp; boards with an
|
||||
// external PA need a longer ramp, so re-apply it after every power change.
|
||||
((CustomSX1262 *)_radio)->setPaRampTime(SX126X_PA_RAMP_TIME);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool isReceivingPacket() override {
|
||||
return ((CustomSX1262 *)_radio)->isReceiving();
|
||||
}
|
||||
float getCurrentRSSI() override {
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
virtual void setParams(float freq, float bw, uint8_t sf, uint8_t cr) = 0;
|
||||
uint32_t getRngSeed();
|
||||
void setTxPower(int8_t dbm);
|
||||
virtual void setTxPower(int8_t dbm);
|
||||
|
||||
virtual float getCurrentRSSI() =0;
|
||||
virtual uint8_t getSpreadingFactor() const { return LORA_SF; }
|
||||
|
||||
Reference in new issue
Block a user