MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / resyncDisplayInventory

Method resyncDisplayInventory

src/models/RadioModel.cpp:1894–1908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1892}
1893
1894bool RadioModel::resyncDisplayInventory()
1895{
1896 if (!isConnected()) return false;
1897 // Re-subscribing to the pan domain makes the radio re-send the status of
1898 // every currently-allocated panadapter + waterfall. Those replies flow
1899 // through the same `display pan`/`display panafall` status parser that
1900 // maintains m_radioDisplayPans/Waterfalls, so the Layer-B inventory
1901 // refreshes to the radio's authoritative current set — the only way to
1902 // observe a resource-level lingering waterfall that no longer emits UDP
1903 // (#3856). We intentionally do NOT clear the maps first: a re-dump can
1904 // only re-add/confirm objects, so a no-op on firmware that doesn't re-dump
1905 // leaves the inventory intact rather than wiping it.
1906 sendCmd("sub pan all");
1907 return true;
1908}
1909
1910double RadioModel::panCenterMhz() const
1911{

Callers 1

doStreamsMethod · 0.80

Calls 1

isConnectedFunction · 0.85

Tested by

no test coverage detected