diff --git a/modem/frame_handler.py b/modem/frame_handler.py index 7375b6c2..ca402c19 100644 --- a/modem/frame_handler.py +++ b/modem/frame_handler.py @@ -132,6 +132,10 @@ class FrameHandler(): if 'origin' in self.details['frame']: event['dxcallsign'] = self.details['frame']['origin'] + if 'gridsquare' in self.details['frame']: + event['gridsquare'] = self.details['frame']['gridsquare'] + + return event def emit_event(self): @@ -160,6 +164,8 @@ class FrameHandler(): self.details['freedv_inst'] = freedv_inst self.details['bytes_per_frame'] = bytes_per_frame + print(self.details) + # look in database for a full callsign if only crc is present if 'origin' not in frame and 'origin_crc' in frame: self.details['frame']['origin'] = DatabaseManager(self.event_manager).get_callsign_by_checksum(frame['origin_crc'])