aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp-e-spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/apps/omap_debug/usrp-e-spi.c')
-rw-r--r--host/apps/omap_debug/usrp-e-spi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp-e-spi.c b/host/apps/omap_debug/usrp-e-spi.c
index d2c38e524..c353c409b 100644
--- a/host/apps/omap_debug/usrp-e-spi.c
+++ b/host/apps/omap_debug/usrp-e-spi.c
@@ -28,6 +28,13 @@ 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);
+
spi_dat.slave = slave;
spi_dat.data = data;