Skip to content

Commit ef50e73

Browse files
saving a few bytes
1 parent 9cb7d4f commit ef50e73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utility/I2CFirmata.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ void I2CFirmata::readAndReportData(byte address, int theRegister, byte numBytes)
5050

5151
// check to be sure correct number of bytes were returned by slave
5252
if(numBytes < Wire.available()) {
53-
Firmata.sendString("I2C Read Error: Too many bytes received");
53+
Firmata.sendString("I2C: Too many bytes received");
5454
} else if(numBytes > Wire.available()) {
55-
Firmata.sendString("I2C Read Error: Too few bytes received");
55+
Firmata.sendString("I2C: Too few bytes received");
5656
}
5757

5858
i2cRxData[0] = address;
@@ -73,7 +73,7 @@ void I2CFirmata::readAndReportData(byte address, int theRegister, byte numBytes)
7373
boolean I2CFirmata::handlePinMode(byte pin, int mode)
7474
{
7575
if (IS_PIN_I2C(pin)) {
76-
if (mode==I2C) {
76+
if (mode == I2C) {
7777
// the user must call I2C_CONFIG to enable I2C for a device
7878
return true;
7979
} else if (isI2CEnabled) {
@@ -117,7 +117,7 @@ void I2CFirmata::handleI2CRequest(byte argc, byte *argv)
117117
byte data;
118118
mode = argv[1] & I2C_READ_WRITE_MODE_MASK;
119119
if (argv[1] & I2C_10BIT_ADDRESS_MODE_MASK) {
120-
Firmata.sendString("10-bit addressing mode is not yet supported");
120+
Firmata.sendString("10-bit addressing not supported");
121121
return;
122122
}
123123
else {

0 commit comments

Comments
 (0)