| 810 | } |
| 811 | |
| 812 | void Pixel_LEDTest_capability( TriggerMacro *trigger, uint8_t state, uint8_t stateType, uint8_t *args ) |
| 813 | { |
| 814 | CapabilityState cstate = KLL_CapabilityState( state, stateType ); |
| 815 | |
| 816 | switch ( cstate ) |
| 817 | { |
| 818 | case CapabilityState_Initial: |
| 819 | // Only activate on press event |
| 820 | break; |
| 821 | case CapabilityState_Debug: |
| 822 | // Display capability name |
| 823 | print("Pixel_LEDTest_capability(test)"); |
| 824 | return; |
| 825 | default: |
| 826 | return; |
| 827 | } |
| 828 | |
| 829 | // Get arguments |
| 830 | PixelTest test = *(PixelTest*)(&args[0]); |
| 831 | uint16_t index = *(uint16_t*)(&args[1]); |
| 832 | |
| 833 | // If index is not set to 0xFFFF, make sure to update the test position |
| 834 | if ( index != 0xFFFF ) |
| 835 | { |
| 836 | Pixel_testPos = index; |
| 837 | } |
| 838 | |
| 839 | // Set the test mode |
| 840 | Pixel_testMode = test; |
| 841 | } |
| 842 | |
| 843 | |
| 844 |
nothing calls this directly
no test coverage detected
searching dependent graphs…