From 0f081f24fb67a282ddae9c071c31f872bebbaaaa Mon Sep 17 00:00:00 2001
From: Robert ter Vehn <robert@tervehn.se>
Date: Mon, 14 Dec 2015 00:05:27 +0100
Subject: [PATCH] Added constant to variable

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

diff --git a/RCSwitch.cpp b/RCSwitch.cpp
index b4483aa..b7ed81c 100644
--- a/RCSwitch.cpp
+++ b/RCSwitch.cpp
@@ -35,7 +35,7 @@ unsigned int RCSwitch::nReceivedBitlength = 0;
 unsigned int RCSwitch::nReceivedDelay = 0;
 unsigned int RCSwitch::nReceivedProtocol = 0;
 int RCSwitch::nReceiveTolerance = 60;
-unsigned int RCSwitch::nSeparationLimit = 4600;
+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.
diff --git a/RCSwitch.h b/RCSwitch.h
index cffceb1..5a4a80b 100644
--- a/RCSwitch.h
+++ b/RCSwitch.h
@@ -132,7 +132,7 @@ class RCSwitch {
     static unsigned int nReceivedBitlength;
     static unsigned int nReceivedDelay;
     static unsigned int nReceivedProtocol;
-    static unsigned int nSeparationLimit;
+    const static unsigned int nSeparationLimit;
     #endif
     /* 
      * timings[0] contains sync timing, followed by a number of bits
-- 
GitLab