From 117485f991a0070c1e765c4581af6a9e651bd9e8 Mon Sep 17 00:00:00 2001 From: Lilly Evans <5427724+LillyWho@users.noreply.github.com> Date: Sat, 5 Jul 2025 20:47:22 +0000 Subject: [PATCH 1/2] Change serial selection mechanism to allow for falling back If the macros for hardware serial aren't set, fall back to softserial. If any one of them are set, don't set the softserial macro and don't include the softserial lib. --- wavTrigger.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wavTrigger.h b/wavTrigger.h index a89ca72..9928dc7 100644 --- a/wavTrigger.h +++ b/wavTrigger.h @@ -34,10 +34,13 @@ // The following defines are used to control which serial class is // used. Uncomment only the one you wish to use. If all of them are // commented out, the library will use Hardware Serial -#define __WT_USE_ALTSOFTSERIAL__ + //#define __WT_USE_SERIAL1__ //#define __WT_USE_SERIAL2__ //#define __WT_USE_SERIAL3__ +#if !defined(__WT_USE_SERIAL1__) || !defined(__WT_USE_SERIAL2__) || !defined(__WT_USE_SERIAL3__) +#define __WT_USE_ALTSOFTSERIAL__ +#endif // ================================================================== #define CMD_GET_VERSION 1 From 03e9ecd2214b1de96edb20b14b6fbcb73fc2057a Mon Sep 17 00:00:00 2001 From: Lilly Evans <5427724+LillyWho@users.noreply.github.com> Date: Sat, 5 Jul 2025 21:02:32 +0000 Subject: [PATCH 2/2] Update comment regarding serial type behaviour --- wavTrigger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wavTrigger.h b/wavTrigger.h index 9928dc7..d949ad8 100644 --- a/wavTrigger.h +++ b/wavTrigger.h @@ -33,7 +33,7 @@ // ================================================================== // The following defines are used to control which serial class is // used. Uncomment only the one you wish to use. If all of them are -// commented out, the library will use Hardware Serial +// commented out, the library will use Software Serial //#define __WT_USE_SERIAL1__ //#define __WT_USE_SERIAL2__