Set the bandmap spot timeout separately for CW/digital and phone
CW and digital spots time out after 10 minutes and phone spots after 30 by default, both settings on the telnet Filters tab. The mode comes from the band plan; a frequency it has no boundaries for counts as phone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1039,7 +1039,11 @@ public sealed partial class AppSession : IDisposable
|
||||
private void ApplySpotSettings()
|
||||
{
|
||||
spotFilter = Settings.SpotFilter.ToFilter(BandPlan, Settings.Station, Countries, Calls, History);
|
||||
Bandmap.Lifetime = TimeSpan.FromMinutes(Math.Max(1, Settings.SpotTimeoutMinutes));
|
||||
Bandmap.LifetimeFor = spot => TimeSpan.FromMinutes(Math.Max(
|
||||
1,
|
||||
BandPlan.ModeAt(spot.Frequency) is ModeCategory.Cw or ModeCategory.Digital
|
||||
? Settings.CwDigitalSpotTimeoutMinutes
|
||||
: Settings.PhoneSpotTimeoutMinutes));
|
||||
foreach (OperatingPosition position in positions)
|
||||
{
|
||||
position.CqLeaveHertz = Settings.CqLeaveHertz;
|
||||
|
||||
Reference in New Issue
Block a user