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

Cette révision appartient à :
Scott Powell
2026-05-01 14:47:07 +10:00
Parent ccda0a99d8
révision 0a8a0a4904
165 fichiers modifiés avec 110 ajouts et 1397 suppressions
-12
Voir le fichier
@@ -17,18 +17,6 @@ bool radio_init() {
return true; // success
}
uint32_t radio_get_rng_seed() {
return millis() + radio_driver.intID(); // TODO: where to get some entropy?
}
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr) {
// no-op
}
void radio_set_tx_power(int8_t dbm) {
radio_driver.setTxPower(dbm);
}
// NOTE: as we are using the WiFi radio, the ESP_IDF will have enabled hardware RNG:
// https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/random.html
class ESP_RNG : public mesh::RNG {
-3
Voir le fichier
@@ -10,7 +10,4 @@ extern ESP32RTCClock rtc_clock;
extern SensorManager sensors;
bool radio_init();
uint32_t radio_get_rng_seed();
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
void radio_set_tx_power(int8_t dbm);
mesh::LocalIdentity radio_new_identity();