summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial/network_basics.rst
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-09-08 11:19:40 +1000
committerDamien George <damien.p.george@gmail.com>2017-09-08 11:19:40 +1000
commit19f1b39d6ff723729e993c2559c5eb8d62215d39 (patch)
tree4517a0ddc7368597b65173452cb5faa9d745f2e5 /docs/esp8266/tutorial/network_basics.rst
parentb8ee7ab5b988f424e34e778fe3a679710d675efa (diff)
stm32/i2c: When scanning for I2C devices only do 1 probe per address.
Previous to this patch the i2c.scan() method would do up to 100 probes per I2C address, to detect the devices on the bus. This repeated probing was a relic from when the code was copied from the accelerometer initialisation, which requires to do repeated probes while waiting for the accelerometer chip to turn on. But I2C devices shouldn't need more than 1 probe to detect their presence, and the generic software I2C implementation uses 1 probe successfully. So this patch changes the implementation to use 1 probe per address, which significantly speeds up the scan operation.
Diffstat (limited to 'docs/esp8266/tutorial/network_basics.rst')
0 files changed, 0 insertions, 0 deletions