Skip to content

Commit f0328c0

Browse files
committed
Clear has_been_modified_in_callback after a succesful append
1 parent 8e3417a commit f0328c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/property/Property.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ bool Property::shouldBeUpdated() {
107107
}
108108

109109
if (_has_been_modified_in_callback) {
110-
_has_been_modified_in_callback = false;
111110
return true;
112111
}
113112

@@ -148,6 +147,7 @@ CborError Property::append(CborEncoder *encoder, bool lightPayload) {
148147
CHECK_CBOR(appendAttributesToCloudReal(encoder));
149148
fromLocalToCloud();
150149
_has_been_updated_once = true;
150+
_has_been_modified_in_callback = false;
151151
_update_requested = false;
152152
_last_updated_millis = millis();
153153
return CborNoError;

0 commit comments

Comments
 (0)