From 1a5522002068be01e398fb4433808fa580760b06 Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 16 May 2023 17:12:45 +0100 Subject: [PATCH] Updated non-Arduino example --- examples/NonArduino/Raspberry/CMakeLists.txt | 4 ++-- examples/NonArduino/Raspberry/PiHal.h | 2 +- examples/NonArduino/Raspberry/build.sh | 2 +- examples/NonArduino/Raspberry/main.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/NonArduino/Raspberry/CMakeLists.txt b/examples/NonArduino/Raspberry/CMakeLists.txt index e708c0a3..79feff12 100644 --- a/examples/NonArduino/Raspberry/CMakeLists.txt +++ b/examples/NonArduino/Raspberry/CMakeLists.txt @@ -6,10 +6,10 @@ project(rpi-sx1261) # when using debuggers such as gdb, the following line can be used #set(CMAKE_BUILD_TYPE Debug) -# if you did not build RadioLib as shared library (see README), +# if you did not build RadioLib as shared library (see wiki), # you will have to add it as source directory # the following is just an example, yours will likely be different -#add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../../../../RadioLib" "${CMAKE_CURRENT_BINARY_DIR}/RadioLib") +add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../../../../RadioLib" "${CMAKE_CURRENT_BINARY_DIR}/RadioLib") # add the executable add_executable(${PROJECT_NAME} main.cpp) diff --git a/examples/NonArduino/Raspberry/PiHal.h b/examples/NonArduino/Raspberry/PiHal.h index 4c9c7bef..83991f78 100644 --- a/examples/NonArduino/Raspberry/PiHal.h +++ b/examples/NonArduino/Raspberry/PiHal.h @@ -2,7 +2,7 @@ #define PI_HAL_H // include RadioLib -#include +#include // include the library for Raspberry GPIO pins #include "pigpio.h" diff --git a/examples/NonArduino/Raspberry/build.sh b/examples/NonArduino/Raspberry/build.sh index a46bbdf4..5d55b66e 100755 --- a/examples/NonArduino/Raspberry/build.sh +++ b/examples/NonArduino/Raspberry/build.sh @@ -4,5 +4,5 @@ set -e mkdir -p build cd build cmake -G "CodeBlocks - Unix Makefiles" .. -make -j4 +make cd .. diff --git a/examples/NonArduino/Raspberry/main.cpp b/examples/NonArduino/Raspberry/main.cpp index ec28a312..5e57c983 100644 --- a/examples/NonArduino/Raspberry/main.cpp +++ b/examples/NonArduino/Raspberry/main.cpp @@ -14,7 +14,7 @@ */ // include the library -#include +#include // include the hardware abstraction layer #include "PiHal.h"