update
This commit is contained in:
@ -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])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user