From 4ca26f6e477efa77b06e7b9d9d78bccd30b1e391 Mon Sep 17 00:00:00 2001
From: jgromes <jgromes@users.noreply.github.com>
Date: Sat, 4 Jul 2020 21:18:31 +0200
Subject: [PATCH] [AFSK] Fixed exclusion macros

---
 src/protocols/AFSK/AFSK.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/protocols/AFSK/AFSK.h b/src/protocols/AFSK/AFSK.h
index c487dd17..d92ffe65 100644
--- a/src/protocols/AFSK/AFSK.h
+++ b/src/protocols/AFSK/AFSK.h
@@ -1,7 +1,10 @@
-#if !defined(_RADIOLIB_AFSK_H) && !defined(RADIOLIB_EXCLUDE_AFSK)
+#if !defined(_RADIOLIB_AFSK_H)
 #define _RADIOLIB_AFSK_H
 
 #include "../../TypeDef.h"
+
+#if !defined(RADIOLIB_EXCLUDE_AFSK)
+
 #include "../../Module.h"
 
 #include "../PhysicalLayer/PhysicalLayer.h"
@@ -55,3 +58,5 @@ class AFSKClient  {
 };
 
 #endif
+
+#endif