kopia lustrzana https://github.com/cyoung/stratux
log prints for testing
rodzic
88ec861fb7
commit
c1932b26cc
|
@ -271,6 +271,7 @@ func sdrWatcher() {
|
||||||
// has enabled both UAT and ES via the web interface.
|
// has enabled both UAT and ES via the web interface.
|
||||||
id := 0
|
id := 0
|
||||||
if globalSettings.UAT_Enabled {
|
if globalSettings.UAT_Enabled {
|
||||||
|
log.Println("globalSettings.UAT_Enabled == true")
|
||||||
if count == 1 {
|
if count == 1 {
|
||||||
if ESDev != nil {
|
if ESDev != nil {
|
||||||
ESDev.shutdown()
|
ESDev.shutdown()
|
||||||
|
@ -285,6 +286,7 @@ func sdrWatcher() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if UATDev == nil {
|
if UATDev == nil {
|
||||||
|
log.Println("\tUATDev == nil")
|
||||||
// preference check based on stratux
|
// preference check based on stratux
|
||||||
// hardware serial when it exists
|
// hardware serial when it exists
|
||||||
serial := ids[id]
|
serial := ids[id]
|
||||||
|
@ -312,6 +314,7 @@ func sdrWatcher() {
|
||||||
// ES specific handling
|
// ES specific handling
|
||||||
id = 0
|
id = 0
|
||||||
if globalSettings.ES_Enabled {
|
if globalSettings.ES_Enabled {
|
||||||
|
log.Println("globalSettings.ES_Enabled == true")
|
||||||
if count == 1 {
|
if count == 1 {
|
||||||
if globalSettings.UAT_Enabled {
|
if globalSettings.UAT_Enabled {
|
||||||
// defer to the UAT handler
|
// defer to the UAT handler
|
||||||
|
@ -326,6 +329,7 @@ func sdrWatcher() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ESDev == nil {
|
if ESDev == nil {
|
||||||
|
log.Println("\tESDev == nil")
|
||||||
// preference check based on stratux
|
// preference check based on stratux
|
||||||
// hardware serial when it exists
|
// hardware serial when it exists
|
||||||
serial := ids[id]
|
serial := ids[id]
|
||||||
|
|
Ładowanie…
Reference in New Issue