This commit is contained in:
2025-06-07 10:36:20 +02:00
parent f1d156ea84
commit b4bbd427aa
3 changed files with 68 additions and 0 deletions

View File

@ -34,6 +34,7 @@ type FlexSpot struct {
NewDXCC bool
NewBand bool
NewMode bool
NewSlot bool
Worked bool
}
@ -164,6 +165,7 @@ func (fc *FlexClient) SendSpottoFlex(spot TelnetSpot) {
NewDXCC: spot.NewDXCC,
NewBand: spot.NewBand,
NewMode: spot.NewMode,
NewSlot: spot.NewSlot,
Worked: spot.CallsignWorked,
}
@ -199,6 +201,10 @@ func (fc *FlexClient) SendSpottoFlex(spot TelnetSpot) {
flexSpot.Priority = "3"
flexSpot.BackgroundColor = "#ff000000"
flexSpot.Comment = flexSpot.Comment + " [New Band]"
} else if !spot.NewBand && !spot.NewMode && !spot.NewDXCC && !spot.CallsignWorked && spot.NewSlot {
flexSpot.Color = "#ffeaeaa0"
flexSpot.Priority = "5"
flexSpot.BackgroundColor = "#ff000000"
} else if !spot.NewBand && !spot.NewMode && !spot.NewDXCC && !spot.CallsignWorked {
flexSpot.Color = "#ffeaeaea"
flexSpot.Priority = "5"