From 673f2815d51f75de2f5d13901148345744d2fbbf Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 11 Nov 2020 20:03:44 +0100 Subject: [PATCH] fixes --- AAL/Arduino.h | 5 ++++- AAL/IPAddress.cpp | 8 +++++++- AAL/IPAddress.h | 1 + AAL/Print.cpp | 7 +++++++ AAL/Print.h | 9 +++++++++ Makefile | 2 +- 6 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 AAL/Print.cpp create mode 100644 AAL/Print.h diff --git a/AAL/Arduino.h b/AAL/Arduino.h index e12310c..065564c 100644 --- a/AAL/Arduino.h +++ b/AAL/Arduino.h @@ -3,7 +3,10 @@ #include #include - +#include +#include +#include +#include typedef uint32_t millis_t; typedef bool boolean; diff --git a/AAL/IPAddress.cpp b/AAL/IPAddress.cpp index 009c56f..f6dfc17 100644 --- a/AAL/IPAddress.cpp +++ b/AAL/IPAddress.cpp @@ -2,9 +2,15 @@ #include + +IPAddress::IPAddress() { + memset(_address, 0, sizeof(_address)); +} + IPAddress::IPAddress(uint8_t o1, uint8_t o2, uint8_t o3, uint8_t o4) { _address[0] = o1; _address[1] = o2; _address[2] = o3; _address[3] = o4; -} \ No newline at end of file +} + diff --git a/AAL/IPAddress.h b/AAL/IPAddress.h index 8e2cca9..cd07d23 100644 --- a/AAL/IPAddress.h +++ b/AAL/IPAddress.h @@ -9,6 +9,7 @@ class IPAddress { uint8_t *raw_address() { return _address; }; public: IPAddress(uint8_t o1, uint8_t o2, uint8_t o3, uint8_t o4); + IPAddress(); }; diff --git a/AAL/Print.cpp b/AAL/Print.cpp new file mode 100644 index 0000000..0c54fa9 --- /dev/null +++ b/AAL/Print.cpp @@ -0,0 +1,7 @@ +#include +#include + + +Print::Print() { + +} \ No newline at end of file diff --git a/AAL/Print.h b/AAL/Print.h new file mode 100644 index 0000000..49d7ca5 --- /dev/null +++ b/AAL/Print.h @@ -0,0 +1,9 @@ +#ifndef _PRINT_H_ +#define _PRINT_H_ + +class Print { + public: + Print(); +}; + +#endif // _PRINT_H_ \ No newline at end of file diff --git a/Makefile b/Makefile index ea9f144..8a55e93 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ CFLAGS+=-I../ioLibrary_Driver/Ethernet -Isrc -IAAL OBJDIR=build VPATH=src AAL -OBJS=$(addprefix $(OBJDIR)/,PubSubClient.o IPAddress.o Stream.o Arduino.o) +OBJS=$(addprefix $(OBJDIR)/,PubSubClient.o IPAddress.o Stream.o Arduino.o Print.o) all: $(OBJS) $(AR) rcs pubsub.a $^