aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps
diff options
context:
space:
mode:
Diffstat (limited to 'host/apps')
-rw-r--r--host/apps/omap_debug/usrp-e-i2c.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-i2c.c b/host/apps/omap_debug/usrp-e-i2c.c
index c8fcc3f98..575430f84 100644
--- a/host/apps/omap_debug/usrp-e-i2c.c
+++ b/host/apps/omap_debug/usrp-e-i2c.c
@@ -49,6 +49,10 @@ int main(int argc, char *argv[])
i2c_msg->addr = address;
i2c_msg->len = count;
+ for (i = 0; i < count; i++) {
+ i2c_msg->data[i] = i;
+ }
+
if (direction) {
// Write
@@ -63,6 +67,7 @@ int main(int argc, char *argv[])
// Read
ret = ioctl(fp, USRP_E_I2C_READ, i2c_msg);
+ printf("Return value from i2c_read ioctl: %d\n", ret);
printf("Ioctl: %d Data read :", ret);
for (i=0; i<count; i++) {