get locator from compound frame, too

This commit is contained in:
Jakob Ketterl 2020-04-17 23:50:23 +02:00
parent 5843aec342
commit 1023087c8a
1 changed files with 2 additions and 2 deletions

View File

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