From 56fbcce8108e6676d1ba34c5e5d14026fe717889 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Thu, 23 Aug 2012 09:51:09 -0400 Subject: more warnings for missing i2c bus --- i2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i2c.c b/i2c.c index 4f1e7cf..138c2e7 100644 --- a/i2c.c +++ b/i2c.c @@ -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; } -- cgit