github.com/la5nta/wl2k-go@v0.11.8/rigcontrol/hamlib/experimental_ptt.go (about) 1 package hamlib 2 3 import ( 4 "log" 5 "os" 6 "strconv" 7 ) 8 9 // Experimental PTT STATE 3 (https://github.com/la5nta/pat/issues/184) 10 11 func init() { 12 if experimentalPTT3Enabled() { 13 log.Println("Experimental PTT3 enabled (https://github.com/la5nta/pat/issues/184)") 14 } 15 } 16 17 func experimentalPTT3Enabled() bool { 18 ok, _ := strconv.ParseBool(os.Getenv("EXPERIMENTAL_HAMLIB_PTT3")) 19 return ok 20 }