[清理]删除几处打印逻辑
This commit is contained in:
parent
f1efd5a2f2
commit
d706a42b1b
4
third_party/balisecodec/conv.go
vendored
4
third_party/balisecodec/conv.go
vendored
@ -176,9 +176,9 @@ func ToValLeftMsb(v []byte) uint16 {
|
|||||||
}
|
}
|
||||||
val := uint16(0)
|
val := uint16(0)
|
||||||
l := len(v)
|
l := len(v)
|
||||||
elems := make([]string, l)
|
//elems := make([]string, l)
|
||||||
for i := 0; i < l; i++ {
|
for i := 0; i < l; i++ {
|
||||||
elems[i] = fmt.Sprintf("%d", v[i])
|
//elems[i] = fmt.Sprintf("%d", v[i])
|
||||||
if v[i] == 1 {
|
if v[i] == 1 {
|
||||||
val += (1 << (l - i - 1))
|
val += (1 << (l - i - 1))
|
||||||
}
|
}
|
||||||
|
18
third_party/balisecodec/decode.go
vendored
18
third_party/balisecodec/decode.go
vendored
@ -14,16 +14,16 @@ func revertFirst10Bits(b []byte) []byte {
|
|||||||
w10s := make([]uint16, 83)
|
w10s := make([]uint16, 83)
|
||||||
for i := 0; i < 83; i++ {
|
for i := 0; i < 83; i++ {
|
||||||
w10s[i] = uint16(ToValLeftMsb(b[i*10 : i*10+10]))
|
w10s[i] = uint16(ToValLeftMsb(b[i*10 : i*10+10]))
|
||||||
// 打印输出
|
//// 打印输出
|
||||||
for j := 0; j < 10; j++ {
|
//for j := 0; j < 10; j++ {
|
||||||
fmt.Printf("%01b", b[i*10+j])
|
// fmt.Printf("%01b", b[i*10+j])
|
||||||
}
|
//}
|
||||||
print(" ")
|
//print(" ")
|
||||||
if i != 0 && i%10 == 9 {
|
//if i != 0 && i%10 == 9 {
|
||||||
println()
|
// println()
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
println()
|
//println()
|
||||||
// 将除了第一个10位字整数求和
|
// 将除了第一个10位字整数求和
|
||||||
sum := uint64(0)
|
sum := uint64(0)
|
||||||
for i := 1; i < 83; i++ {
|
for i := 1; i < 83; i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user