 +    }
 +  }
 +  bin[bitLength] = '\0';
-+  
++
 +  return bin;
 +}
 +

From 2a434c95344b0180e163afb195e325a4d4f480e8 Mon Sep 17 00:00:00 2001
From: JD <100024149@ge.com>
Date: Fri, 12 May 2017 14:10:59 +0200
Subject: [PATCH] Add more details to the output (to match ReceiveDemo_Advanced
 output from rc-switch)

--- a/RPi_utils/RFSniffer.cpp
+++ b/RPi_utils/RFSniffer.cpp
@@ -15,7 +15,47 @@

 RCSwitch mySwitch;

+static char *dec2binWzerofill(unsigned long Dec, unsigned int bitLength) {
+  static char bin[64];
+  unsigned int i=0;

+  while (Dec > 0) {
+    bin[32+i++] = ((Dec & 1) > 0) ? '1' : '0';
+    Dec = Dec >> 1;
