Update bthome.h

This commit is contained in:
t0urista 2024-10-29 13:56:34 +01:00 committed by GitHub
parent 1f067faa34
commit b679f916f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,6 +163,9 @@ class OIDSFixedPoint: public OIDFixedSize <oid, size_bytes> {
};
}
SensorPublisher *new_publisher(sensor::Sensor *sensor) const {
return new SensorPublisher(oid, OIDSFixedPoint::read, sensor);
}
static constexpr int f_num_ = {f_num};
static constexpr int f_denom_ = {f_denom};
};