From e8aa0f85c67b1820c5384eb61a36a8379467cdf2 Mon Sep 17 00:00:00 2001 From: aa2mz <43317842+aa2mz@users.noreply.github.com> Date: Sat, 23 Nov 2019 20:10:53 -0500 Subject: [PATCH] Update Morse.h Allow extrernal control of transmit character buffer --- src/Morse.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Morse.h b/src/Morse.h index c6d4826..da4d555 100644 --- a/src/Morse.h +++ b/src/Morse.h @@ -32,7 +32,10 @@ constexpr uint8_t DEFAULT_OUTPUT_PIN = LED_BUILTIN; constexpr uint8_t DEFAULT_LED_PIN = LED_BUILTIN; constexpr float DEFAULT_WPM = 25; -constexpr uint8_t TX_BUFFER_SIZE = 100; +#ifndef TXBUFFERSIZE +#define TXBUFFERSIZE 100 +#endif +constexpr uint8_t TX_BUFFER_SIZE = TXBUFFERSIZE; constexpr uint8_t MULT_DAH = 3; // DAH is 3x a DIT constexpr uint8_t MULT_WORDDELAY = 7; // Space between words is 7 dits constexpr uint8_t MAX_MSG_DELAY = 30; // Maximum message delay time in minutes