TESTEND

#define TESTEND (10U)

This is a macro defining the size of the array of the stored pulse values and an indicator of the end of the test