diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-23 09:51:09 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-23 09:51:09 -0400 |
commit | 56fbcce8108e6676d1ba34c5e5d14026fe717889 (patch) | |
tree | cff5f815b835481b72cd541a8e5acc75d9bec270 | |
parent | 3d617d7397c9b951e2a4b3005e35f4f9192b35fb (diff) |
more warnings for missing i2c bus
-rw-r--r-- | i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,7 +24,7 @@ void I2C_Write(gulong address, guchar value) int device = open(I2C_BUS, O_RDWR); if (device == -1) { - g_print_debug("ERROR: could not open I2C bus %s\n", I2C_BUS); + g_print_debug("ERROR: could not open I2C bus %s for writing\n", I2C_BUS); return; } @@ -49,6 +49,7 @@ guchar I2C_Read(gulong address) int device = open(I2C_BUS, O_RDWR); if (device == -1) { + g_print_debug("ERROR: could not open I2C bus %s for reading\n", I2C_BUS); return 0; } |