From: Othmar Gsenger Date: Thu, 16 Feb 2012 17:47:16 +0000 (+0000) Subject: added - to raw_hidshit X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=c9b28dc2b7244ca3430e6c14a3957c6768e5c058;p=svn42.git added - to raw_hidshit --- 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");