aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp-e-i2c.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-07 21:10:30 +0000
committerJosh Blum <josh@joshknows.com>2010-05-07 21:10:30 +0000
commitac17bb0e8a3049944adde0aa5cbdcfb2ea711794 (patch)
tree8f7bd7ab46f7f9e863c0e5438d16fc4f6cb8c524 /host/apps/omap_debug/usrp-e-i2c.c
parent760f6f840204736439a65d5d773f1dd5e4f4157a (diff)
parent6c306995a733622a0b0c3fb8c13c23dc8301d926 (diff)
downloaduhd-ac17bb0e8a3049944adde0aa5cbdcfb2ea711794.tar.gz
uhd-ac17bb0e8a3049944adde0aa5cbdcfb2ea711794.tar.bz2
uhd-ac17bb0e8a3049944adde0aa5cbdcfb2ea711794.zip
Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/apps/omap_debug/usrp-e-i2c.c')
-rw-r--r--host/apps/omap_debug/usrp-e-i2c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-i2c.c b/host/apps/omap_debug/usrp-e-i2c.c
index 615dc557b..da8709ae1 100644
--- a/host/apps/omap_debug/usrp-e-i2c.c
+++ b/host/apps/omap_debug/usrp-e-i2c.c
@@ -37,6 +37,12 @@ int main(int argc, char *argv[])
fp = open("/dev/usrp_e0", O_RDWR);
printf("fp = %d\n", fp);
+ if (fp < 0) {
+ perror("Open failed");
+ return -1;
+ }
+
+// sleep(1);
if (direction) {
count = argc - 3;