rc433/sniffer.c

changeset 23
d820a6f3ec16
parent 20
f7f9463cdefd
child 58
e8e7b46b705b
equal deleted inserted replaced
22:a3b058c67289 23:d820a6f3ec16
21 *****************************************************************************/ 21 *****************************************************************************/
22 22
23 #include "../lib/mbselib.h" 23 #include "../lib/mbselib.h"
24 #include "sniffer.h" 24 #include "sniffer.h"
25 25
26 #ifdef HAVE_WIRINGPI_H
26 27
27 int main(int argc, char *argv[]) { 28 int main(int argc, char *argv[]) {
28 29
29 // This pin is not the first pin on the RPi GPIO header! 30 // This pin is not the first pin on the RPi GPIO header!
30 // Consult https://projects.drogon.net/raspberry-pi/wiringpi/pins/ 31 // Consult https://projects.drogon.net/raspberry-pi/wiringpi/pins/
57 } 58 }
58 59
59 exit(0); 60 exit(0);
60 } 61 }
61 62
63 #else
64
65 int main(int argc, char *argv[]) {
66 fprintf(stderr, "This program does nothing without the wiringPi library\n");
67 return 0;
68 }
69
70 #endif
71

mercurial