This commit is contained in:
2024-10-29 18:41:08 +07:00
parent 868108cd84
commit 4454822ad4
5 changed files with 11 additions and 11 deletions

View File

@ -207,7 +207,7 @@ func (fc *FlexClient) SendSpottoFlex(spot TelnetSpot) {
}
fc.SendSpot(stringSpot)
Log.Debugf("Sending spot to FlexRadio: %s", stringSpot)
// Log.Debugf("Sending spot to FlexRadio: %s", stringSpot)
}
func (fc *FlexClient) SendSpot(stringSpot string) {
@ -223,7 +223,7 @@ func (fc *FlexClient) ReadLine() {
os.Exit(1)
}
Log.Debugf("Received message from FlexRadio: %s", strings.Trim(message, "\n"))
// Log.Debugf("Received message from FlexRadio: %s", strings.Trim(message, "\n"))
regRespSpot := *regexp.MustCompile(`R(\d+)\|0\|(\d+)\n`)
respSpot := regRespSpot.FindStringSubmatch(message)
@ -258,9 +258,9 @@ func (fc *FlexClient) ReadLine() {
respDelete := regSpotDeleted.FindStringSubmatch(message)
if len(respDelete) > 0 {
spot, _ := fc.Repo.FindSpotByFlexSpotNumber(respDelete[1])
// spot, _ := fc.Repo.FindSpotByFlexSpotNumber(respDelete[1])
fc.Repo.DeleteSpotByFlexSpotNumber(respDelete[1])
Log.Debugf("Spot: DX: %s - Spotter: %s - Freq: %s - Band: %s - FlexID: %v deleted from database", spot.DX, spot.SpotterCallsign, spot.FrequencyHz, spot.Band, respDelete[1])
// Log.Debugf("Spot: DX: %s - Spotter: %s - Freq: %s - Band: %s - FlexID: %v deleted from database", spot.DX, spot.SpotterCallsign, spot.FrequencyHz, spot.Band, respDelete[1])
}
}
}