sanity check for pattern parser
This commit is contained in:
parent
d10359f8d1
commit
2bcc99a893
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class MatrixDisplay:
|
||||||
|
|
||||||
async def pattern(self, pattern: str = "0,1", off_ms: int = 500, on_ms: int = 500):
|
async def pattern(self, pattern: str = "0,1", off_ms: int = 500, on_ms: int = 500):
|
||||||
# Parse
|
# Parse
|
||||||
pattern_steps = [step.strip() == "1" for step in pattern.split(",")]
|
pattern_steps = [step.strip() == "1" for step in pattern.split(",") if step]
|
||||||
# Execute
|
# Execute
|
||||||
for step in pattern_steps:
|
for step in pattern_steps:
|
||||||
if step:
|
if step:
|
||||||
|
|
Loading…
Reference in a new issue