From 0d894b79134759329af62042e671f79b8e39be7a Mon Sep 17 00:00:00 2001 From: Javier Balloffet Date: Wed, 31 Jan 2024 19:49:11 -0300 Subject: [PATCH] Fix Arduino header file inclusion (#207) Signed-off-by: Javier Balloffet --- andino_firmware/src/app.cpp | 3 ++- andino_firmware/src/encoder.cpp | 3 ++- andino_firmware/src/motor.cpp | 2 +- andino_firmware/src/pcint.cpp | 2 +- andino_firmware/src/pcint.h | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/andino_firmware/src/app.cpp b/andino_firmware/src/app.cpp index 3a7980c0..139f9b59 100644 --- a/andino_firmware/src/app.cpp +++ b/andino_firmware/src/app.cpp @@ -64,7 +64,8 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "app.h" -#include "Arduino.h" +#include + #include "commands.h" #include "constants.h" #include "encoder.h" diff --git a/andino_firmware/src/encoder.cpp b/andino_firmware/src/encoder.cpp index 313548c3..bdf17ab0 100644 --- a/andino_firmware/src/encoder.cpp +++ b/andino_firmware/src/encoder.cpp @@ -66,7 +66,8 @@ #include -#include "Arduino.h" +#include + #include "pcint.h" namespace andino { diff --git a/andino_firmware/src/motor.cpp b/andino_firmware/src/motor.cpp index 899756c6..1720bdab 100644 --- a/andino_firmware/src/motor.cpp +++ b/andino_firmware/src/motor.cpp @@ -64,7 +64,7 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "motor.h" -#include "Arduino.h" +#include namespace andino { diff --git a/andino_firmware/src/pcint.cpp b/andino_firmware/src/pcint.cpp index ebc17b03..5853c74b 100644 --- a/andino_firmware/src/pcint.cpp +++ b/andino_firmware/src/pcint.cpp @@ -29,7 +29,7 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "pcint.h" -#include "Arduino.h" +#include static andino::PCInt::InterruptCallback g_callbacks[3] = {nullptr}; diff --git a/andino_firmware/src/pcint.h b/andino_firmware/src/pcint.h index 27e4f891..bf9ef43a 100644 --- a/andino_firmware/src/pcint.h +++ b/andino_firmware/src/pcint.h @@ -31,7 +31,7 @@ #include -#include "Arduino.h" +#include namespace andino {