def _i2c_retry(self, func, *params):
        # Run specified I2C request and ignore IOError 110 (timeout) up to
        # retries times.  For some reason the Pi 2 hardware I2C appears to be
        # flakey and randomly return timeout errors on I2C reads.  This will
        # catch those errors, reset the MPR121, and retry.
        count = 0
        while True:
            try:
                return func(*params)
            except IOError as ex:
                # Re-throw anything that isn't a timeout (110) error.
                if ex.errno != 110:
                    raise ex
            # Else there was a timeout, so reset the device and retry.
            self._reset()
            # Increase count and fail after maximum number of retries.
            count += 1
            if MAX_I2C_RETRIES >= count:
                raise RuntimeError('Exceeded maximum number or retries attempting I2C communication!')
dataset/ETHPy150Open DexterInd/GrovePi/Software/Python/grove_i2c_touch/MPR121.py/MPR121._i2c_retry/swapped operands of `>=`