diff options
author | Sandeep Mistry <s.mistry@arduino.cc> | 2016-07-18 15:54:46 -0400 |
---|---|---|
committer | Sandeep Mistry <s.mistry@arduino.cc> | 2016-07-18 15:54:46 -0400 |
commit | 0f86786b477edeec8df8109e51f80b6d91ae246d (patch) | |
tree | 6583750d1f05e5087bc857c2de343769605c2d52 /libraries/SoftwareSerial/src/SoftwareSerial.h | |
parent | c48cb93b2c1e80f1a4c891eb0126fe758f542e86 (diff) |
Wrap SoftwareSerial _SS_MAX_RX_BUFF define
To allow sketches to override value as per #58.
Diffstat (limited to 'libraries/SoftwareSerial/src/SoftwareSerial.h')
-rw-r--r-- | libraries/SoftwareSerial/src/SoftwareSerial.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/SoftwareSerial/src/SoftwareSerial.h b/libraries/SoftwareSerial/src/SoftwareSerial.h index 26183ba..b1a37c4 100644 --- a/libraries/SoftwareSerial/src/SoftwareSerial.h +++ b/libraries/SoftwareSerial/src/SoftwareSerial.h @@ -39,7 +39,10 @@ http://arduiniana.org. * Definitions
******************************************************************************/
+#ifndef _SS_MAX_RX_BUFF
#define _SS_MAX_RX_BUFF 64 // RX buffer size
+#endif
+
#ifndef GCC_VERSION
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif
|