mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed beacon away from key
This commit is contained in:
parent
bed741069a
commit
0f6865ffdd
2 changed files with 3 additions and 1 deletions
|
@ -101,6 +101,9 @@ class FrameHandler():
|
||||||
if "session_id" in frame:
|
if "session_id" in frame:
|
||||||
activity["session_id"] = frame["session_id"]
|
activity["session_id"] = frame["session_id"]
|
||||||
|
|
||||||
|
if "AWAY_FROM_KEY" in frame["flag"]:
|
||||||
|
activity["away_from_key"] = frame["flag"]["AWAY_FROM_KEY"]
|
||||||
|
|
||||||
self.states.add_activity(activity)
|
self.states.add_activity(activity)
|
||||||
|
|
||||||
def add_to_heard_stations(self):
|
def add_to_heard_stations(self):
|
||||||
|
|
|
@ -186,7 +186,6 @@ class StateManager:
|
||||||
# if frequency not provided, add it here
|
# if frequency not provided, add it here
|
||||||
if 'frequency' not in activity_data:
|
if 'frequency' not in activity_data:
|
||||||
activity_data['frequency'] = self.radio_frequency
|
activity_data['frequency'] = self.radio_frequency
|
||||||
|
|
||||||
self.activities_list[activity_id] = activity_data
|
self.activities_list[activity_id] = activity_data
|
||||||
self.sendStateUpdate()
|
self.sendStateUpdate()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue