Commit 1da112a6 authored by TMRh20's avatar TMRh20

Slight fix for makefile and RF24.h define

parent 603f4cc8
...@@ -41,7 +41,7 @@ librf24-bcm: RF24.o bcm2835.o ...@@ -41,7 +41,7 @@ librf24-bcm: RF24.o bcm2835.o
RF24.o: RF24.cpp RF24.o: RF24.cpp
g++ -Wall -fPIC ${CCFLAGS} -c $^ g++ -Wall -fPIC ${CCFLAGS} -c $^
bcm2835.o: RPi/bcm2835.c bcm2835.o: ${DRIVER_DIR}/bcm2835.c
gcc -Wall -fPIC ${CCFLAGS} -c $^ gcc -Wall -fPIC ${CCFLAGS} -c $^
# clear build files # clear build files
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#define __RF24_H__ #define __RF24_H__
#include "RF24_config.h" #include "RF24_config.h"
#if defined (RF24_LINUX) #if defined (__linux) || defined (LINUX)
#include "RPi/bcm2835.h" #include "RPi/bcm2835.h"
#elif defined SOFTSPI #elif defined SOFTSPI
#include <DigitalIO.h> #include <DigitalIO.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment