Skip to content

Commit 67abbc6

Browse files
committed
Fix - do not publish i2c output write back to io, there is no matching resp!
1 parent 6bf8118 commit 67abbc6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Wippersnapper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,8 @@ bool cbDecodeSignalRequestI2C(pb_istream_t *stream, const pb_field_t *field,
891891
// publish
892892
}
893893
WS_DEBUG_PRINTLN("[app] I2C Device Output Write Done");
894+
return true; // we successfully wrote to the device, this subtype has no
895+
// response to publish to IO
894896
} else {
895897
WS_DEBUG_PRINTLN("ERROR: Undefined I2C message tag");
896898
return false; // fail out, we didn't encode anything to publish

0 commit comments

Comments
 (0)