Skip to content

Commit

Permalink
Add support for Long Path on Pactor channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed May 16, 2022
1 parent 7958e00 commit fa0facf
Show file tree
Hide file tree
Showing 6 changed files with 928 additions and 832 deletions.
1 change: 1 addition & 0 deletions Paclink/ChannelProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public struct ChannelProperties
public int TNCPort;
public bool TNCBusyHold;
public int TNCOnAirBaud;
public bool PactorUseLongPath;

// WINMOR Channel Specific Properties
public string WMCaptureDevice;
Expand Down
2 changes: 2 additions & 0 deletions Paclink/Channels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public static void FillChannelCollection()
stcChannel.PactorId = Globals.Settings.Get(strName, "Pactor 1 ID", true);
stcChannel.TTLLevel = Globals.Settings.Get(strName, "PTC II TTL Level", false);
stcChannel.NMEA = Globals.Settings.Get(strName, "Use NMEA Commands", false);
stcChannel.PactorUseLongPath = Globals.Settings.Get(strName, "Use Long Path", false);
break;
}

Expand Down Expand Up @@ -312,6 +313,7 @@ private static void UpdateProperties(ref ChannelProperties stcChannel)
Globals.Settings.Save(strName, "Pactor 1 ID", stcChannel.PactorId);
Globals.Settings.Save(strName, "PTC II TTL Level", stcChannel.TTLLevel);
Globals.Settings.Save(strName, "Use NMEA Commands", stcChannel.NMEA);
Globals.Settings.Save(strName, "Use Long Path", stcChannel.PactorUseLongPath);
}
else if (stcChannel.ChannelType == ChannelMode.Winmor)
{
Expand Down
3 changes: 3 additions & 0 deletions Paclink/DialogPactorTNCChannels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ private void SetEntries()
btnUpdate.Enabled = true;
cmbFreqs.Enabled = true;
cmbCallSigns.Enabled = true;

chkLongPath.Checked = withBlock.PactorUseLongPath;
}
} // SetEntries

Expand Down Expand Up @@ -397,6 +399,7 @@ private void UpdateChannelProperties(ref ChannelProperties stcChannel)
stcChannel.TNCFSKLevel = Convert.ToInt32(nudFSKLevel.Value);
stcChannel.TNCPSKLevel = Convert.ToInt32(nudPSKLevel.Value);
stcChannel.TNCBusyHold = chkBusyHold.Checked;
stcChannel.PactorUseLongPath = chkLongPath.Checked;
stcChannel.PactorId = chkIDEnabled.Checked;
stcChannel.RemoteCallsign = GetCallSign();
// .FrequenciesScanned = cmbFreqs.Items.Count
Expand Down
Loading

0 comments on commit fa0facf

Please sign in to comment.