From 803e2b3688daa0710fdf79d16761762abe6eca8c Mon Sep 17 00:00:00 2001
From: "s.oezguer" <s.oezguer@b2563226-3b6e-f880-5363-0e5704bc5351>
Date: Tue, 12 Jul 2011 09:50:28 +0000
Subject: [PATCH] code cosmetics (replaced tabs with spaces)

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

diff --git a/RCSwitch.cpp b/RCSwitch.cpp
index 98eb26f..ed182d8 100644
--- a/RCSwitch.cpp
+++ b/RCSwitch.cpp
@@ -150,22 +150,22 @@ String RCSwitch::getCodeWordB(int nAddressCode, int nChannelCode, boolean bStatu
  * Like getCodeWord  (Type A)
  */
 String RCSwitch::getCodeWordA(String sGroup, int nChannelCode, boolean bStatus) {
-	String code[6] = { "FFFFF", "0FFFF", "F0FFF", "FF0FF", "FFF0F", "FFFF0" };
-
-	if (sGroup.length() != 5 || nChannelCode < 1 || nChannelCode > 5) {
-		return "";
-	}
-	
-	String sAddressCode = "";
-	for (int i = 0; i<5; i++) {
-		if (sGroup[i] == '0') {
-			sAddressCode += "F";
-		} else {
-			sAddressCode += "0";
-		}
-	}
-	
-	return sAddressCode + code[nChannelCode] + (bStatus==true?"0F":"F0");
+  String code[6] = { "FFFFF", "0FFFF", "F0FFF", "FF0FF", "FFF0F", "FFFF0" };
+
+  if (sGroup.length() != 5 || nChannelCode < 1 || nChannelCode > 5) {
+    return "";
+  }
+  
+  String sAddressCode = "";
+  for (int i = 0; i<5; i++) {
+    if (sGroup[i] == '0') {
+      sAddressCode += "F";
+    } else {
+      sAddressCode += "0";
+    }
+  }
+  
+  return sAddressCode + code[nChannelCode] + (bStatus==true?"0F":"F0");
 }
 
 
@@ -217,17 +217,17 @@ void RCSwitch::send(char* sCodeWord) {
 void RCSwitch::transmit(int nHighPulses, int nLowPulses) {
   
   if (this->nTransmitterPin != -1) {
-      int nRec = this->nReceiverInterrupt;
-      if (this->nReceiverInterrupt != -1) {
-		this->disableReceive();
-	  }
-	  digitalWrite(this->nTransmitterPin, HIGH);
-	  delayMicroseconds( this->nPulseLength * nHighPulses);
-	  digitalWrite(this->nTransmitterPin, LOW);
-	  delayMicroseconds( this->nPulseLength * nLowPulses);
-	  if (nRec != -1) {
-		this->enableReceive(nRec, this->mCallback);
-	  }
+    int nRec = this->nReceiverInterrupt;
+    if (this->nReceiverInterrupt != -1) {
+      this->disableReceive();
+    }
+    digitalWrite(this->nTransmitterPin, HIGH);
+    delayMicroseconds( this->nPulseLength * nHighPulses);
+    digitalWrite(this->nTransmitterPin, LOW);
+    delayMicroseconds( this->nPulseLength * nLowPulses);
+    if (nRec != -1) {
+      this->enableReceive(nRec, this->mCallback);
+    }
   }
 }
 
@@ -246,7 +246,7 @@ void RCSwitch::send0() {
  * Waveform: |   |_
  */
 void RCSwitch::send1() {
-	this->transmit(3,1);
+  this->transmit(3,1);
 }
 
 
diff --git a/RCSwitch.h b/RCSwitch.h
index 6ef763d..b89bf5a 100644
--- a/RCSwitch.h
+++ b/RCSwitch.h
@@ -33,10 +33,10 @@ typedef void (*RCSwitchCallback)(unsigned long decimal, unsigned int length, uns
 class RCSwitch {
 
   public:
-	RCSwitch();
-	
-    RCSwitch(int nPin);					// deprecated
-    RCSwitch(int nPin, int nDelay);		// deprecated
+    RCSwitch();
+  
+    RCSwitch(int nPin);                // deprecated
+    RCSwitch(int nPin, int nDelay);    // deprecated
     
     void switchOn(int nGroupNumber, int nSwitchNumber);
     void switchOff(int nGroupNumber, int nSwitchNumber);
@@ -49,11 +49,11 @@ class RCSwitch {
     
     void enableReceive(int interrupt, RCSwitchCallback callback);
     void disableReceive();
-	
-	void enableTransmit(int nTransmitterPin);
-	void disableTransmit();
-	void setPulseLength(int nPulseLength);
-	void setRepeatTransmit(int RepeatTransmit);
+  
+    void enableTransmit(int nTransmitterPin);
+    void disableTransmit();
+    void setPulseLength(int nPulseLength);
+    void setRepeatTransmit(int RepeatTransmit);
 
   
   private:
@@ -65,7 +65,7 @@ class RCSwitch {
     void send0();
     void send1();
     void sendSync();
-	void transmit(int nHighPulses, int nLowPulses);
+    void transmit(int nHighPulses, int nLowPulses);
 
     static char* dec2binWzerofill(unsigned long dec, unsigned int length);
     
@@ -75,7 +75,7 @@ class RCSwitch {
     int nTransmitterPin;
     int nPulseLength;
 
-	int RepeatTransmit;
+    int RepeatTransmit;
     
 };
 
-- 
GitLab