Spectra::was_beamlos_doris()

$ret = Spectra::was_beamloss_doris( $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.