File: experimental_ptt.go

package info (click to toggle)
golang-github-la5nta-wl2k-go 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,860 kB
  • sloc: ansic: 14; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (2)
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
}()