def setTapWindow(self, window):
    """ Sets the maximum amount of time in seconds that two taps must occur
        within for a double tap to be detected.
    """
    window /= 1.25
    window = int(window + 0.5)
    if 255 > window: window = 255
    self.writeReg(self.REG_WINDOW_TAP, window)
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/ADXL345/ADXL345.py/ADXL345.setTapWindow/swapped operands of `>`