mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-24 11:22:57 +10:00
Implement ranking system for direct repeaters based on SNR and recency; update related UI components to reflect changes
This commit is contained in:
@@ -76,7 +76,7 @@ class _SNRIndicatorState extends State<SNRIndicator> {
|
||||
Widget build(BuildContext context) {
|
||||
final directRepeaters = widget.connector.directRepeaters;
|
||||
final directBestRepeaters = List.of(directRepeaters)
|
||||
..sort((a, b) => (b.snr).compareTo(a.snr));
|
||||
..sort((a, b) => (b.ranking).compareTo(a.ranking));
|
||||
final directRepeater = directBestRepeaters.isEmpty
|
||||
? null
|
||||
: directBestRepeaters.first;
|
||||
|
||||
Reference in New Issue
Block a user