| 659 | int AutoFirePatternLength = 2; |
| 660 | |
| 661 | void SetAutoFirePattern(int onframes, int offframes) |
| 662 | { |
| 663 | //int i; |
| 664 | //for (i = 0; i < onframes && i < 8; i++) { |
| 665 | // AutoFirePattern[i] = 1; |
| 666 | //} |
| 667 | //for (; i < 8; i++) { |
| 668 | // AutoFirePattern[i] = 0; |
| 669 | //} |
| 670 | //if (onframes + offframes < 2) { |
| 671 | // AutoFirePatternLength = 2; |
| 672 | //} else if (onframes + offframes > 8) { |
| 673 | // AutoFirePatternLength = 8; |
| 674 | //} else { |
| 675 | // AutoFirePatternLength = onframes + offframes; |
| 676 | //} |
| 677 | AutoFirePatternLength = onframes + offframes; |
| 678 | AFon = onframes; AFoff = offframes; |
| 679 | } |
| 680 | |
| 681 | void GetAutoFirePattern( int *onframes, int *offframes) |
| 682 | { |
no outgoing calls
no test coverage detected