summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index e954821..b7f18fa 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -395,7 +395,8 @@ bool dirbrowse(char *root)
restore = true;
}
break;
-
+
+#ifndef SIMULATOR
case SYS_USB_CONNECTED:
/* Tell the USB thread that we are safe */
DEBUGF("dirbrowse got SYS_USB_CONNECTED\n");
@@ -411,6 +412,7 @@ bool dirbrowse(char *root)
strcpy(currdir, "/");
lastdir[0] = 0;
break;
+#endif
}
if ( restore ) {