Spectra::was_beamlos_petra()

$ret = Spectra::was_beamloss_petra( $currentMin, $waitTime);

The function returns 0, if the current is above currentMin [mA]. Otherwise it waits for the current to rise above currentMin, waits for waitTime seconds and returns 1.