From f360082c755899874f8e1bd6335237873495f743 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Wed, 11 Dec 2019 15:50:44 +0900 Subject: [PATCH] minor update for postman. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 8b7a3ed..4789c0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -230,7 +230,7 @@ void receivedCallback(uint32_t from, String & msg) { // REQUIRED msg = msg.substring(0, POST_LENGTH); // (0) ~ (POST_LENGTH-1) // send whatever letter we postmans trust other postman. Wire.beginTransmission(I2C_ADDR); - Wire.write(msg.c_str()); + Wire.write(msg.c_str(), POST_LENGTH); Wire.endTransmission(); } void changedConnectionCallback() {