retry connect flex

This commit is contained in:
2024-10-23 23:31:29 +07:00
parent f1dbcb4e2b
commit 1b3f5f908b
6 changed files with 50 additions and 45 deletions

12
spot.go

@ -63,11 +63,15 @@ func ProcessTelnetSpot(re *regexp.Regexp, spotRaw string, SpotChan chan TelnetSp
default:
spot.NewDXCC = true
}
} else if len(contactsMode) == 0 {
}
if len(contactsMode) == 0 {
spot.NewMode = true
} else if len(contactsBand) == 0 {
}
if len(contactsBand) == 0 {
spot.NewBand = true
} else if len(contactsCall) > 0 {
}
if len(contactsCall) > 0 {
spot.CallsignWorked = true
}
@ -104,7 +108,7 @@ func ProcessTelnetSpot(re *regexp.Regexp, spotRaw string, SpotChan chan TelnetSp
spot.DX, spot.Spotter, spot.Frequency, spot.Band, spot.Mode, spot.Comment, spot.Time, spot.DXCC)
}
} else {
Log.Errorf("Could not decode: %s", strings.Trim(spotRaw, "\n"))
Log.Debugf("Could not decode: %s", strings.Trim(spotRaw, "\n"))
}
}