From 9a0cb88515f6dd280dde164d10e08020ed966119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eckl=2C=20M=C3=A1t=C3=A9?= Date: Sat, 30 Jul 2016 11:54:54 +0200 Subject: [PATCH] Add conditional function declaration HC05.begin() was not declared for the case when software serial is not selected. In that case it did not even compile in spite of the fact that the definition was available. I just added it conditionally. --- HC05.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HC05.h b/HC05.h index 7ce0dae..3cc5eb9 100644 --- a/HC05.h +++ b/HC05.h @@ -93,6 +93,9 @@ class HC05 : public Stream #endif virtual int available(void); virtual void begin(unsigned long); +#ifndef HC05_SOFTWARE_SERIAL + virtual void begin(unsigned long, uint8_t); +#endif virtual int peek(void); virtual int read(void); virtual void flush(void);