()
| 565 | } |
| 566 | |
| 567 | func (t *Triangle) stepTimer() { |
| 568 | if t.timerValue == 0 { |
| 569 | t.timerValue = t.timerPeriod |
| 570 | if t.lengthValue > 0 && t.counterValue > 0 { |
| 571 | t.dutyValue = (t.dutyValue + 1) % 32 |
| 572 | } |
| 573 | } else { |
| 574 | t.timerValue-- |
| 575 | } |
| 576 | } |
| 577 | |
| 578 | func (t *Triangle) stepLength() { |
| 579 | if t.lengthEnabled && t.lengthValue > 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected