From c9b28dc2b7244ca3430e6c14a3957c6768e5c058 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 16 Feb 2012 17:47:16 +0000 Subject: [PATCH] added - to raw_hidshit --- rf433rcv/pc/rawhid_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rf433rcv/pc/rawhid_test.c b/rf433rcv/pc/rawhid_test.c index 2c3f9fb..cd94bdb 100644 --- a/rf433rcv/pc/rawhid_test.c +++ b/rf433rcv/pc/rawhid_test.c @@ -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"); -- 1.7.10.4