Browse Source

Import and vendor github.com/harenber/ptc-go/go

Also vendor github.com/tarm/serial (transitive dependency)

This adds support for PACTOR PTC-II and similar modems that supports
binary transparent WA8DED mode.

Issue #40
Martin Hebnes Pedersen 1 year ago
parent
commit
7abfb168fe
4 changed files with 10 additions and 1 deletions
  1. 6 0
      .gitmodules
  2. 2 1
      connect.go
  3. 1 0
      vendor/github.com/harenber/ptc-go
  4. 1 0
      vendor/github.com/tarm/serial

+ 6 - 0
.gitmodules

@@ -74,3 +74,9 @@
 [submodule "vendor/github.com/pd0mz/go-maidenhead"]
 	path = vendor/github.com/pd0mz/go-maidenhead
 	url = https://github.com/pd0mz/go-maidenhead.git
+[submodule "vendor/github.com/harenber/ptc-go"]
+	path = vendor/github.com/harenber/ptc-go
+	url = https://github.com/harenber/ptc-go.git
+[submodule "vendor/github.com/tarm/serial"]
+	path = vendor/github.com/tarm/serial
+	url = https://github.com/tarm/serial.git

+ 2 - 1
connect.go

@@ -15,7 +15,8 @@ import (
 	"github.com/la5nta/wl2k-go/transport/ardop"
 	"github.com/la5nta/wl2k-go/transport/winmor"
 
-	// Register ax25 and telnet dialers
+	// Register other dialers
+	_ "github.com/harenber/ptc-go/ptc"
 	_ "github.com/la5nta/wl2k-go/transport/ax25"
 	_ "github.com/la5nta/wl2k-go/transport/telnet"
 )

+ 1 - 0
vendor/github.com/harenber/ptc-go

@@ -0,0 +1 @@
+Subproject commit 59a59c5b308f42f7c97b81749d62b8c18711ff82

+ 1 - 0
vendor/github.com/tarm/serial

@@ -0,0 +1 @@
+Subproject commit eaafced92e9619f03c72527efeab21e326f3bc36