Commit c678c1f3 authored by 高英祥's avatar 高英祥

修改称重相关

parent eff70a11
......@@ -97,11 +97,11 @@ object SllchKit : ScaleBaseKit() {
isStable = isStable(comBean),
weight = weightKg(comBean),
unit = "kg",
tare = tare,
tare = "0",
isReadErr = false
)
updateWeight(it)
lastWeight = weightKg(comBean)
// lastWeight = weightKg(comBean)
LogUtils.e(TAG, GsonUtils.toJson(it))
}
}
......@@ -129,19 +129,19 @@ object SllchKit : ScaleBaseKit() {
//去皮
override fun setNetWeight() {
this.tare = lastWeight
// this.tare = lastWeight
serialHelper?.send(cmd)
}
//去皮
override fun setNetWeightByElec(tare: Double) {
this.tare = lastWeight
// this.tare = lastWeight
serialHelper?.send(cmd)
}
//清除去皮
override fun clearTare() {
this.tare = "0.00"
// this.tare = "0.00"
serialHelper?.send(cmdZero)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment