kopia lustrzana https://github.com/cyoung/stratux
Log signal strength in UAT log.
rodzic
34bc4ab051
commit
6165d327a1
|
@ -10,6 +10,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -37,5 +38,7 @@ func dump978Cb(updown C.char, data *C.uint8_t, length C.int, rs_errors C.int, si
|
||||||
outData += fmt.Sprintf("%02x", buf[i])
|
outData += fmt.Sprintf("%02x", buf[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
outData += ";rs=" + strconv.Itoa(int(rs_errors)) + ";ss=" + strconv.Itoa(int(signal_strength)) + ";"
|
||||||
|
|
||||||
OutChan <- outData
|
OutChan <- outData
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue