From 4562425e41daa1a43bafcdbf98b99e29aaa3c743 Mon Sep 17 00:00:00 2001 From: Rogier van Staveren Date: Tue, 16 May 2023 00:18:29 +0200 Subject: [PATCH] Fix pulse length splitting bug and bump version --- pyproject.toml | 2 +- rfcontrol/__init__.py | 2 +- rfcontrol/controller.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 65f4ff5..be1fe23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rfcontrolpy" -version = "0.0.3" +version = "0.0.4" license = {text = "Apache-2.0"} authors = [ { name="Rogier van Staveren" } diff --git a/rfcontrol/__init__.py b/rfcontrol/__init__.py index 7ddc846..565c0cc 100644 --- a/rfcontrol/__init__.py +++ b/rfcontrol/__init__.py @@ -1,5 +1,5 @@ """ """ -__version__ = "0.0.3" +__version__ = "0.0.4" from rfcontrol import controller, helpers diff --git a/rfcontrol/controller.py b/rfcontrol/controller.py index 99b0def..1d19e17 100644 --- a/rfcontrol/controller.py +++ b/rfcontrol/controller.py @@ -80,7 +80,7 @@ def prepare_compressed_pulses(input: str): # 268 2632 1282 10168 0 0 0 0 010002000202000002000200020200020002... # The first 8 numbers are the pulse length and the last string is the pulse sequence parts = input.split(" ") - pulse_lengths = [int(i) for i in parts[0:7]] + pulse_lengths = [int(i) for i in parts[0:8]] pulse_sequence = parts[8] # Now lets filter out 0 pulses