Mercurial > circuitpython-spiderwing
changeset 1:85538a203c89 draft
Add missing lock in the sensor support
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Mon, 15 May 2017 18:37:15 +0200 |
| parents | cf2cd5a35d24 |
| children | 2f1609829f66 |
| files | crab/hardware.py |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/crab/hardware.py Mon May 15 16:36:08 2017 +0200 +++ b/crab/hardware.py Mon May 15 18:37:15 2017 +0200 @@ -56,6 +56,7 @@ def sensor(self): self._i2c_buffer[0] = 0x5e + self.i2c.try_lock() try: self.i2c.writeto(0x60, self._i2c_buffer, end=1, stop=False) self.i2c.readfrom_into(0x60, self._i2c_buffer)
