From d504905eeca32bed8e4996798617370398fba150 Mon Sep 17 00:00:00 2001
From: Max Horn <max@quendi.de>
Date: Wed, 6 Jan 2016 12:11:50 +0100
Subject: [PATCH] Disable RCSwitch::timings if RCSwitchDisableReceiving is
 defined

---
 RCSwitch.cpp | 2 +-
 RCSwitch.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/RCSwitch.cpp b/RCSwitch.cpp
index ce50344..f3b078a 100644
--- a/RCSwitch.cpp
+++ b/RCSwitch.cpp
@@ -49,8 +49,8 @@ const unsigned int RCSwitch::nSeparationLimit = 4600;
 // separationLimit: minimum microseconds between received codes, closer codes are ignored.
 // according to discussion on issue #14 it might be more suitable to set the separation
 // limit to the same time as the 'low' part of the sync signal for the current protocol.
-#endif
 unsigned int RCSwitch::timings[RCSWITCH_MAX_CHANGES];
+#endif
 
 RCSwitch::RCSwitch() {
   this->nTransmitterPin = -1;
diff --git a/RCSwitch.h b/RCSwitch.h
index 8450a0f..79ab6b1 100644
--- a/RCSwitch.h
+++ b/RCSwitch.h
@@ -140,11 +140,11 @@ class RCSwitch {
     static unsigned int nReceivedDelay;
     static unsigned int nReceivedProtocol;
     const static unsigned int nSeparationLimit;
-    #endif
     /* 
      * timings[0] contains sync timing, followed by a number of bits
      */
     static unsigned int timings[RCSWITCH_MAX_CHANGES];
+    #endif
 
     
 };
-- 
GitLab