Improve build process for Linux
This commit is contained in:
@@ -51,7 +51,7 @@ void _process() {
|
||||
transportProcess();
|
||||
#endif
|
||||
|
||||
#if defined(LINUX_ARCH_GENERIC)
|
||||
#if defined(LINUX)
|
||||
// To avoid high cpu usage
|
||||
usleep(10000); // 10ms
|
||||
#endif
|
||||
@@ -65,7 +65,7 @@ void _infiniteLoop() {
|
||||
#if defined (MY_LEDS_BLINKING_FEATURE)
|
||||
ledsProcess();
|
||||
#endif
|
||||
#if defined(LINUX_ARCH_GENERIC)
|
||||
#if defined(LINUX)
|
||||
exit(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
#include "MyConfig.h"
|
||||
#include "MyTransport.h"
|
||||
|
||||
#ifdef RASPBERRYPI_ARCH
|
||||
#include "drivers/RF24/RF24_RPi.cpp"
|
||||
#ifdef LINUX_ARCH_RASPBERRYPI
|
||||
#include "drivers/RF24/RF24_Linux.cpp"
|
||||
#else
|
||||
#include "drivers/RF24/RF24.h"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user