* Refactor: removed duplicated radio_rng_seed(), radio_set_params(), radio_set_tx_power()

This commit is contained in:
Scott Powell
2026-05-01 14:47:07 +10:00
parent ccda0a99d8
commit 0a8a0a4904
165 changed files with 110 additions and 1397 deletions

View File

@@ -8,6 +8,15 @@
class CustomSTM32WLxWrapper : public RadioLibWrapper {
public:
CustomSTM32WLxWrapper(CustomSTM32WLx& radio, mesh::MainBoard& board) : RadioLibWrapper(radio, board) { }
void setParams(float freq, float bw, uint8_t sf, uint8_t cr) override {
((CustomSTM32WLx *)_radio)->setFrequency(freq);
((CustomSTM32WLx *)_radio)->setSpreadingFactor(sf);
((CustomSTM32WLx *)_radio)->setBandwidth(bw);
((CustomSTM32WLx *)_radio)->setCodingRate(cr);
updatePreamble(sf);
}
bool isReceivingPacket() override {
return ((CustomSTM32WLx *)_radio)->isReceiving();
}