Skip to content

Commit

Permalink
Add conditional function declaration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ecklm committed Jul 30, 2016
1 parent 04ac38d commit 9a0cb88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HC05.h
Expand Up @@ -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);
Expand Down

0 comments on commit 9a0cb88

Please sign in to comment.