Skip to content

Commit

Permalink
Garmin Pilot compatibility by changing IP Address to 10.29.39.1
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nn0 committed Dec 28, 2021
1 parent 9806469 commit 258ca7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main/clientconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ func (conn *networkConnection) Capabilities() uint8 {
}

func (conn *networkConnection) GetDesiredPacketSize() int {
// Garmin Pilot/Stratus 3 compatibility:
// For GP to detect Stratux, the IP has to be set accordingly. However, GP can only handle one GDL90 message per datagram.
// We just assume that if the user configures this IP, then probably to use Garmin Pilot or something else that only supports Stratus 3
// - and therefore try to behave more like a Stratus 3.
if globalSettings.WiFiIPAddress == "10.29.39.1" {
return 1
}
return 1024
}

Expand Down

0 comments on commit 258ca7f

Please sign in to comment.