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

You could simplify this to just 0, right?