fix error checking for waveform porch samples