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() {