Skip to content

Commit f6cdd95

Browse files
fixup! Redefining Primitive kind property as template class
1 parent e8a3096 commit f6cdd95

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/property/types/PropertyPrimitive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
// template specialization for float Properties to handle nan values
77
template<>
88
bool PropertyPrimitive<float>::isDifferentFromCloud() {
9-
return arduino::math::ieee754_different(_value, _cloud_value, Property::_min_delta_property);
9+
return arduino::math::ieee754_different(_value, _cloud_value, Property::_min_delta_property);
1010
}

src/property/types/PropertyPrimitive.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ class PropertyPrimitive: public Property {
1212
operator T() const {
1313
return _value;
1414
}
15-
virtual bool isDifferentFromCloud() {
15+
bool isDifferentFromCloud() override {
1616
return _value != _cloud_value && (abs(float(_value - _cloud_value)) >= Property::_min_delta_property);
1717
}
18-
virtual void fromCloudToLocal() {
18+
void fromCloudToLocal() override {
1919
_value = _cloud_value;
2020
}
21-
virtual void fromLocalToCloud() {
21+
void fromLocalToCloud() override {
2222
_cloud_value = _value;
2323
}
24-
virtual CborError appendAttributesToCloud(CborEncoder *encoder) {
24+
CborError appendAttributesToCloud(CborEncoder *encoder) override {
2525
return appendAttribute(_value, "", encoder);
2626
}
27-
virtual void setAttributesFromCloud() {
27+
void setAttributesFromCloud() override {
2828
setAttribute(_cloud_value, "");
2929
}
3030

0 commit comments

Comments
 (0)