changed to set the preamble on radio settings change

This commit is contained in:
overkillfpv
2026-03-29 21:45:16 +11:00
parent 3843c00f54
commit f0ec5d2ae7
66 changed files with 65 additions and 10 deletions

View File

@@ -41,6 +41,7 @@ public:
virtual float getCurrentRSSI() =0;
virtual uint8_t getSpreadingFactor() const { return LORA_SF; }
static uint16_t preambleLengthForSF(uint8_t sf) { return sf <= 8 ? 32 : 16; }
void updatePreamble(uint8_t sf) { _preamble_sf = sf; _radio->setPreambleLength(preambleLengthForSF(sf)); }
int getNoiseFloor() const override { return _noise_floor; }
void triggerNoiseFloorCalibrate(int threshold) override;