minor update for postman.

This commit is contained in:
Dooho Yi 2019-12-11 15:50:44 +09:00
parent 8c611871e6
commit f360082c75

View file

@ -230,7 +230,7 @@ void receivedCallback(uint32_t from, String & msg) { // REQUIRED
msg = msg.substring(0, POST_LENGTH); // (0) ~ (POST_LENGTH-1) msg = msg.substring(0, POST_LENGTH); // (0) ~ (POST_LENGTH-1)
// send whatever letter we postmans trust other postman. // send whatever letter we postmans trust other postman.
Wire.beginTransmission(I2C_ADDR); Wire.beginTransmission(I2C_ADDR);
Wire.write(msg.c_str()); Wire.write(msg.c_str(), POST_LENGTH);
Wire.endTransmission(); Wire.endTransmission();
} }
void changedConnectionCallback() { void changedConnectionCallback() {