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.