From 1023087c8a4c9983c9f28f6e1b09d7c30f8b4ddb Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 17 Apr 2020 23:50:23 +0200 Subject: [PATCH] get locator from compound frame, too --- owrx/js8.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/js8.py b/owrx/js8.py index 2b9c9a1..796e4eb 100644 --- a/owrx/js8.py +++ b/owrx/js8.py @@ -2,7 +2,7 @@ from .wsjt import WsjtChopper from .parser import Parser import re from js8py import Js8 -from js8py.frames import Js8FrameHeartbeat +from js8py.frames import Js8FrameHeartbeat, Js8FrameCompound from owrx.map import Map, LocatorLocation from owrx.pskreporter import PskReporter from owrx.metrics import Metrics, CounterMetric @@ -44,7 +44,7 @@ class Js8Parser(Parser): self.pushDecode() - if isinstance(frame, Js8FrameHeartbeat): + if (isinstance(frame, Js8FrameHeartbeat) or isinstance(frame, Js8FrameCompound)) and frame.grid: Map.getSharedInstance().updateLocation( frame.callsign, LocatorLocation(frame.grid), "JS8", self.band )