kopia lustrzana https://github.com/cyoung/stratux
Imports/unused variable fix.
rodzic
96338b413d
commit
517ad79632
|
@ -2,7 +2,6 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stratux/serial"
|
"github.com/stratux/serial"
|
||||||
"log"
|
"log"
|
||||||
|
@ -126,7 +125,7 @@ func processRadioMessage(msg []byte) {
|
||||||
switch len(msg) {
|
switch len(msg) {
|
||||||
case 552:
|
case 552:
|
||||||
to := make([]byte, 552)
|
to := make([]byte, 552)
|
||||||
i := int(C.correct_uplink_frame((*C.uint8_t)(unsafe.Pointer(&msg[0])), (*C.uint8_t)(unsafe.Pointer(&to[0])), (*C.int)(unsafe.Pointer(&rs_errors))))
|
C.correct_uplink_frame((*C.uint8_t)(unsafe.Pointer(&msg[0])), (*C.uint8_t)(unsafe.Pointer(&to[0])), (*C.int)(unsafe.Pointer(&rs_errors)))
|
||||||
toRelay = fmt.Sprintf("+%s;ss=%d;", hex.EncodeToString(to[:432]), rssiDump978)
|
toRelay = fmt.Sprintf("+%s;ss=%d;", hex.EncodeToString(to[:432]), rssiDump978)
|
||||||
case 48:
|
case 48:
|
||||||
to := make([]byte, 48)
|
to := make([]byte, 48)
|
||||||
|
|
|
@ -522,7 +522,7 @@ func sdrWatcher() {
|
||||||
esEnabled := globalSettings.ES_Enabled
|
esEnabled := globalSettings.ES_Enabled
|
||||||
uatEnabled := globalSettings.UAT_Enabled
|
uatEnabled := globalSettings.UAT_Enabled
|
||||||
count := rtl.GetDeviceCount()
|
count := rtl.GetDeviceCount()
|
||||||
if UATRadio_connected {
|
if globalStatus.UATRadio_connected {
|
||||||
count++
|
count++
|
||||||
}
|
}
|
||||||
atomic.StoreUint32(&globalStatus.Devices, uint32(count))
|
atomic.StoreUint32(&globalStatus.Devices, uint32(count))
|
||||||
|
|
Ładowanie…
Reference in New Issue