def setTapLatency(self, latency):
    """ Sets the minimum amount of time in milliseconds after one tap is
        detected that must pass before a second tap crosses the tap threshold.
        Any crossing of the threshold before this time has passed is considered
        noise and a second tap won't be detected.
    """
    latency /= 1.25
    latency = int(latency + 0.5)
    if 255 > latency: latency = 255
    self.writeReg(self.REG_LATENT_TAP, latency)
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/ADXL345/ADXL345.py/ADXL345.setTapLatency/swapped operands of `>`