fixed beacon away from key

This commit is contained in:
DJ2LS 2024-04-16 08:36:31 +02:00
parent bed741069a
commit 0f6865ffdd
2 changed files with 3 additions and 1 deletions

View file

@ -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):

View file

@ -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()