From 5b0e921b662ba3a087462bd7b687da0ff386480a Mon Sep 17 00:00:00 2001 From: cheetah Date: Tue, 28 Jan 2020 20:19:47 +0100 Subject: [PATCH] quickfix --- main.py | 4 ++-- protocols/Nemaxx_WL10_SmokeDetector.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8499e2a..87813e9 100644 --- a/main.py +++ b/main.py @@ -7,8 +7,8 @@ from SoapySDR import * #SOAPY_SDR_* constants import protocols.Nemaxx_WL10_SmokeDetector nemaxx = protocols.Nemaxx_WL10_SmokeDetector.Nemaxx_WL10_SmokeDetector() -with open('nemaxx.complex', 'wb') as f: - samples = nemaxx.generateSamples(repeatNum=20) +with open('output.complex', 'wb') as f: + samples = nemaxx.generateSamples(repeatNum=10) samples.tofile(f) """ diff --git a/protocols/Nemaxx_WL10_SmokeDetector.py b/protocols/Nemaxx_WL10_SmokeDetector.py index 7cf1123..ebe6950 100644 --- a/protocols/Nemaxx_WL10_SmokeDetector.py +++ b/protocols/Nemaxx_WL10_SmokeDetector.py @@ -19,5 +19,6 @@ class Nemaxx_WL10_SmokeDetector: self.modulator.addPadding(1400 if int(j) == 0 else 2750) self.modulator.addModulation(795) self.modulator.addPadding(1337) # Packet Sync + self.modulator.addPadding(20000) return self.modulator.getSamplesAndReset(numpyType) \ No newline at end of file