This commit is contained in:
2024-10-31 15:57:53 +07:00
parent c86f531313
commit 861a5ff14b
4 changed files with 22 additions and 27 deletions

17
spot.go
View File

@ -40,6 +40,11 @@ func ProcessTelnetSpot(re *regexp.Regexp, spotRaw string, SpotChanToFlex chan Te
}
spot.DXCC = GetDXCC(spot.DX, Countries)
if spot.DXCC == "" {
Log.Infof("Could not identify the DXCC for %s", spot.DX)
}
spot.GetBand()
spot.GuessMode()
spot.CallsignWorked = false
@ -86,15 +91,11 @@ func ProcessTelnetSpot(re *regexp.Regexp, spotRaw string, SpotChanToFlex chan Te
spot.CallsignWorked = true
}
// send spot to SpotChan to Flex Client to send the spot to Flex radio
if Cfg.General.FlexRadioSpot {
SpotChanToFlex <- spot
}
// Send spots to FlexRadio
SpotChanToFlex <- spot
// send FlexSpot to HTTP Server
if Cfg.General.HTTPServer {
SpotChanToHTTPServer <- spot
}
// Send FlexSpot to HTTP Server
SpotChanToHTTPServer <- spot
if spot.NewDXCC {
Log.Debugf("(** New DXCC **) DX: %s - Spotter: %s - Freq: %s - Band: %s - Mode: %s - Comment: %s - Time: %s - Command: %v, FlexSpot: %v",