mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 22:17:34 +00:00
send "sdr_id" to be able to detect changes
This commit is contained in:
parent
8372f198db
commit
ad8ff1c2f7
2 changed files with 7 additions and 1 deletions
|
|
@ -52,7 +52,12 @@ class SdrSource(ABC):
|
|||
self.props = PropertyStack()
|
||||
# layer 0 reserved for profile properties
|
||||
self.props.addLayer(1, props)
|
||||
self.props.addLayer(2, Config.get())
|
||||
# the sdr_id is constant, so we put it in a separate layer
|
||||
# this is used to detect device changes, that are then sent to the client
|
||||
sdrIdLayer = PropertyLayer()
|
||||
sdrIdLayer["sdr_id"] = id
|
||||
self.props.addLayer(2, sdrIdLayer.readonly())
|
||||
self.props.addLayer(3, Config.get())
|
||||
self.sdrProps = self.props.filter(*self.getEventNames())
|
||||
|
||||
self.profile_id = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue