added - to raw_hidshit
authorOthmar Gsenger <otti@realraum.at>
Thu, 16 Feb 2012 17:47:16 +0000 (17:47 +0000)
committerOthmar Gsenger <otti@realraum.at>
Thu, 16 Feb 2012 17:47:16 +0000 (17:47 +0000)
rf433rcv/pc/rawhid_test.c

index 2c3f9fb..cd94bdb 100644 (file)
@@ -43,6 +43,8 @@ int main (int argc, char *argv[])
   if (argc>1)
   {
     FILE * f = fopen (argv[1], "r");
+    if (strcmp("-",argv[1]) == 0)
+      f = stdin;
     if (!f)
       return -3;
     printf("Clearing Buffer\n");