File: experimental_ptt.go

package info (click to toggle)
golang-github-la5nta-wl2k-go 0.11.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,856 kB
  • sloc: ansic: 14; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package hamlib

import (
	"log"
	"os"
	"strconv"
)

// Experimental PTT STATE 3 (https://github.com/la5nta/pat/issues/184)
var experimentalPTT3Enabled = func() bool {
	ok, _ := strconv.ParseBool(os.Getenv("EXPERIMENTAL_HAMLIB_PTT3"))
	if ok {
		log.Println("Experimental PTT3 enabled (https://github.com/la5nta/pat/issues/184)")
	}
	return ok
}()