Log signal strength in UAT log.

pull/58/head
Christopher Young 2015-09-22 00:04:59 -04:00
rodzic 34bc4ab051
commit 6165d327a1
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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
} }