mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 14:55:46 +00:00
* companion: interference threshold default (14)
This commit is contained in:
@@ -490,6 +490,10 @@ protected:
|
||||
return _prefs.airtime_factor;
|
||||
}
|
||||
|
||||
int getInterferenceThreshold() const override {
|
||||
return 14; // hard-coded for now
|
||||
}
|
||||
|
||||
int calcRxDelay(float score, uint32_t air_time) const override {
|
||||
if (_prefs.rx_delay_base <= 0.0f) return 0;
|
||||
return (int) ((pow(_prefs.rx_delay_base, 0.85f - score) - 1.0) * air_time);
|
||||
|
||||
Reference in New Issue
Block a user