mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-08-29 07:08:52 +00:00
Add per-node RSSI/SNR display on Nodes screen (developer mode)
Backend: - LoRaInterface captures packet RSSI/SNR immediately after every RX, removing redundant SPI re-reads from log statements - AnnounceManager populates DiscoveredNode.rssi/snr from LoRaInterface on every announce (fields existed but were never wired up) Frontend: - Nodes screen shows RSSI appended to hops/age when dev mode is on - Node name label uses smaller font (montserrat_12) to reduce truncation - Normal users see no change
This commit is contained in:
@@ -519,6 +519,7 @@ void setup() {
|
||||
announceManager = new AnnounceManager();
|
||||
announceManager->setStorage(&sdStore, &flash);
|
||||
announceManager->setLocalDestHash(rns.destination().hash());
|
||||
if (rns.loraInterface()) announceManager->setLoRaInterface(rns.loraInterface());
|
||||
announceManager->loadContacts();
|
||||
announceManager->loadNameCache();
|
||||
announceHandler = RNS::HAnnounceHandler(announceManager);
|
||||
@@ -718,6 +719,7 @@ void setup() {
|
||||
|
||||
lvNodesScreen.setAnnounceManager(announceManager);
|
||||
lvNodesScreen.setUIManager(&ui);
|
||||
lvNodesScreen.setUserConfig(&userConfig);
|
||||
lvNodesScreen.setNodeSelectedCallback([](const std::string& peerHex) {
|
||||
lvMessageView.setPeerHex(peerHex);
|
||||
ui.lvTabBar().setActiveTab(LvTabBar::TAB_MSGS);
|
||||
|
||||
Reference in New Issue
Block a user