Merged in no1wudi/nuttx (pull request #241)

fixed the debug method selection of ssd1306

Approved-by: Gregory Nutt
This commit is contained in:
no1wudi 2017-03-07 13:36:26 +00:00 committed by Gregory Nutt
commit 6f4b8c9e60

View File

@ -100,7 +100,7 @@ void ssd1306_sendbyte(FAR struct ssd1306_dev_s *priv, uint8_t regval)
ret = I2C_TRANSFER(priv->i2c, &msg, 1);
if (ret < 0)
{
snerr("ERROR: I2C_TRANSFER failed: %d\n", ret);
lcderr("ERROR: I2C_TRANSFER failed: %d\n", ret);
}
}
@ -144,7 +144,7 @@ void ssd1306_sendblk(FAR struct ssd1306_dev_s *priv, uint8_t *data, uint8_t len)
ret = I2C_TRANSFER(priv->i2c, msg, 2);
if (ret < 0)
{
snerr("ERROR: I2C_TRANSFER failed: %d\n", ret);
lcderr("ERROR: I2C_TRANSFER failed: %d\n", ret);
}
}