Skip to content

Commit

Permalink
Merge pull request #74 from lesny8/master
Browse files Browse the repository at this point in the history
SUPLA_CHANNELFNC_WEIGHTSENSOR
  • Loading branch information
przemyslawzygmunt committed Jun 23, 2019
2 parents 086c917 + 88d0455 commit 6252718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/supla/android/db/ChannelBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ protected CharSequence getHumanReadableValue(WhichOne whichOne, ChannelValue val
if (getOnLine()) {
double weight = value.getDouble(-1);

if (weight >= 2000) {
if (Math.abs(weight) >= 2000) {

return String.format("%.2f kg", weight / 1000.00);

Expand Down

0 comments on commit 6252718

Please sign in to comment.