Trigger length of 1 sample (on==off) resulted in empty array.

Maybe rather do this like....?
```python
try:
...
except ValueError:
...
```
The `if`/`else` is evaluated every time, although the `else` only happens 0.001% of all cases I assume..