This is a fix for issue #8, I first attempted to keep the thin wrappers around the SoftwareSerial and HardwareSerial using #define statements as the maintainer suggested. However when compiling Arduino still wants to build the io.cpp files for SoftwareSerialIO and HardwareSerialIO. I thought about adding #define statements also to these files also but thought it might be cleaner to make HardwareSerialIO and SoftwareSerialIO inherit from StreamIO since they all use the same base class.
I think things should work the same as before but don't have access to an AVR chip to test.
Pull Request Details
This is a fix for issue #8, I first attempted to keep the thin wrappers around the SoftwareSerial and HardwareSerial using
#define
statements as the maintainer suggested. However when compiling Arduino still wants to build theio.cpp
files forSoftwareSerialIO
andHardwareSerialIO
. I thought about adding#define
statements also to these files also but thought it might be cleaner to makeHardwareSerialIO
andSoftwareSerialIO
inherit fromStreamIO
since they all use the same base class.I think things should work the same as before but don't have access to an AVR chip to test.