Skip to content

Commit

Permalink
#804 - tare scale when weight is not zero
Browse files Browse the repository at this point in the history
  • Loading branch information
graphefruit committed Oct 2, 2024
1 parent 539be1a commit dd73d69
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,10 @@ export class BrewBrewingGraphComponent implements OnInit {
try {
const scale: BluetoothScale = this.bleManager.getScale();
if (scale) {
scale.tare();
if (scale.getWeight() !== 0) {
//Just tare if the scale is not zero yet.
scale.tare();
}
}
} catch (ex) {}
}
Expand Down

0 comments on commit dd73d69

Please sign in to comment.