mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Update bthome.h
This commit is contained in:
parent
b679f916f4
commit
80874184a6
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ class OIDSFixedPoint: public OIDFixedSize <oid, size_bytes> {
|
|||
};
|
||||
}
|
||||
return FloatValue {
|
||||
.value = read_sint(sr.value_size, sr.value_ptr) * f_num / f_denom,
|
||||
.value = static_cast<float>(read_sint(sr.value_size, sr.value_ptr)) * f_num / f_denom,
|
||||
.next_ptr = sr.next_ptr,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue