Update
This commit is contained in:
1 parent
358c16a3a5
commit
60c0e0f260
2 files changed
+8
-8
No files matched your search
@@ -14,14 +14,14 @@ func parseData(weightBytes []byte) *Weight {
|
||||
isLBSUnit := isBitSet(ctrlByte, 0)
|
||||
isCattyUnit := isBitSet(ctrlByte, 4)
|
||||
|
||||
fmt.Printf("IsWeightRemoved: %v\n", isWeightRemoved)
|
||||
fmt.Printf("6 LSB Unknown: %v\n", isBitSet(ctrlByte, 6))
|
||||
fmt.Printf("IsStabilized: %v\n", isStabilized)
|
||||
fmt.Printf("IsCattyOrKg: %v\n", isCattyUnit)
|
||||
fmt.Printf("3 LSB Unknown: %v\n", isBitSet(ctrlByte, 3))
|
||||
fmt.Printf("2 LSB Unknown: %v\n", isBitSet(ctrlByte, 2))
|
||||
fmt.Printf("1 LSB Unknown: %v\n", isBitSet(ctrlByte, 1))
|
||||
fmt.Printf("IsLBS: %v\n", isLBSUnit)
|
||||
// fmt.Printf("IsWeightRemoved: %v\n", isWeightRemoved)
|
||||
// fmt.Printf("6 LSB Unknown: %v\n", isBitSet(ctrlByte, 6))
|
||||
// fmt.Printf("IsStabilized: %v\n", isStabilized)
|
||||
// fmt.Printf("IsCattyOrKg: %v\n", isCattyUnit)
|
||||
// fmt.Printf("3 LSB Unknown: %v\n", isBitSet(ctrlByte, 3))
|
||||
// fmt.Printf("2 LSB Unknown: %v\n", isBitSet(ctrlByte, 2))
|
||||
// fmt.Printf("1 LSB Unknown: %v\n", isBitSet(ctrlByte, 1))
|
||||
// fmt.Printf("IsLBS: %v\n", isLBSUnit)
|
||||
|
||||
// // Only if the value is stabilized and the weight is *not* removed, the date is valid
|
||||
if isStabilized && !isWeightRemoved {
|
||||
|
||||
Reference in new issue
Block a user