diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-23 09:50:08 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-23 09:50:08 -0400 |
commit | 3d617d7397c9b951e2a4b3005e35f4f9192b35fb (patch) | |
tree | b21b3b2e128140f2dbb98ec80f531c7360b9fca1 /i2c.c | |
parent | 03dd24a7aaa61b1cff250ae4df04da3bba318626 (diff) |
warn if I2C bus not available
Diffstat (limited to 'i2c.c')
-rw-r--r-- | i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,3 +1,4 @@ +#include "globals.h" #include <stdio.h> #include <unistd.h> #include <fcntl.h> @@ -22,8 +23,8 @@ void I2C_Write(gulong address, guchar value) int device = open(I2C_BUS, O_RDWR); - // FIXME? if (device == -1) { + g_print_debug("ERROR: could not open I2C bus %s\n", I2C_BUS); return; } |