aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp-e-debug-pins.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-debug-pins.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-debug-pins.c')
-rw-r--r--host/apps/omap_debug/usrp-e-debug-pins.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-debug-pins.c b/host/apps/omap_debug/usrp-e-debug-pins.c
index d4e3f5223..d18bbf990 100644
--- a/host/apps/omap_debug/usrp-e-debug-pins.c
+++ b/host/apps/omap_debug/usrp-e-debug-pins.c
@@ -46,6 +46,10 @@ 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;
+ }
if (strcmp(argv[1], "0") == 0) {
printf("Selected 0 based on %s\n", argv[1]);